Trait structopt_utilities::StructOptUtils[][src]

pub trait StructOptUtils: StructOpt + Sized {
    fn strict_from_iter(
        input: impl IntoIterator<Item = impl Into<OsString> + Clone>
    ) -> Self { ... }
fn strict_from_args() -> Self { ... }
fn run_completion_generator(name: &str, bin: &str) { ... } }
Expand description

Utility trait for all StructOpt types.

Provided methods

If the flags are invalid or unknown, print error and exit with code 1. If --help, print help message and exit with code 0. If --version, print version and exit with code 0. Otherwise, return parsing result.

Apply parse_strict on main CLI arguments.

Run completion generator program.

Implementors