Module lexopt::prelude

source ·
Expand description

A small prelude for processing arguments.

It allows you to write Short/Long/Value without an Arg prefix and adds convenience methods to OsString.

If this is used it’s best to import it inside a function, not in module scope:

fn parse_args() -> Result<Args, lexopt::Error> {
    use lexopt::prelude::*;
    // ...
}

Re-exports§