[][src]Function gumdrop::parse_args_default_or_exit

pub fn parse_args_default_or_exit<T: Options>() -> T

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 stdout 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.