Function gumdrop::parse_args_default_or_exit
source · [−]pub fn parse_args_default_or_exit<T: Options>() -> T
Expand description
Parses arguments from the environment, using the default parsing style.
If an error is encountered, the error is printed to stderr
and the
process will exit with status code 2
.
If the user supplies a help option, option usage will be printed to
stderr
and the process will exit with status code 0
.
Otherwise, the parsed options are returned.
Panics
If any argument to the process is not valid unicode.