Function gumdrop::parse_args_or_exit[][src]

pub fn parse_args_or_exit<T: Options>(style: ParsingStyle) -> T

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 stdout and the process will exit with status code 0.

Otherwise, the parsed options are returned.