[]Trait pretty_exec::structopt_utilities::StructOptUtils

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

Utility trait for all StructOpt types.

Provided methods

pub fn strict_from_iter(
    input: impl IntoIterator<Item = impl Clone + Into<OsString>>
) -> Self

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.

pub fn strict_from_args() -> Self

Apply parse_strict on main CLI arguments.

pub fn run_completion_generator(name: &str, bin: &str)

Run completion generator program.

Loading content...

Implementors

impl<Args> StructOptUtils for Args where
    Args: StructOpt

Loading content...