Reputation: 93
I am using Clap and my YAML file has the following:
args:
- DIRECTORY
help: one or more directories
required: true
multiple: true
In my main.rs, I want to get the name of each of the directory passed as an argument and do something like
dir_names.push(name_of_the_directory);
where dir_names
is a vector and name_of_the_directory
is a string slice.
How do I proceed?
Upvotes: 4
Views: 3419