[−][src]Trait type_cli::CLI
Required methods
pub fn parse(args: impl Iterator<Item = String>) -> Result<Parse<Self>, Error>
[src]
Parses the arguments as a command-line interface of the current type, returning errors as a value for manul handling.
If you don't need fine control over program flow, use CLI::processs
instead.
Provided methods
pub fn process() -> Self
[src]
Parses std::env::args()
as a command-line interface of the current type.
If an error occurs while parsing, it will be send to stderr and the process will exit.
If the user enters --help
or -h
, help info will be sent to stderr and the process will exit.
If you want finer control over program flow, use CLI::parse
instead.