Function gumdrop::parse_args_or_exit
source · [−]pub fn parse_args_or_exit<T: Options>(style: ParsingStyle) -> T
Expand description
Parses arguments from the environment.
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.