logo

Trait clap::CommandFactory[][src]

pub trait CommandFactory: Sized {
    fn into_app<'help>() -> Command<'help>;
fn into_app_for_update<'help>() -> Command<'help>; fn command<'help>() -> Command<'help> { ... }
fn command_for_update<'help>() -> Command<'help> { ... } }
Expand description

Create an Command relevant for a user-defined container.

Derived as part of Parser.

Required methods

👎 Deprecated since 3.1.0:

Replaced with `CommandFactory::command

Deprecated, replaced with CommandFactory::command

👎 Deprecated since 3.1.0:

Replaced with `CommandFactory::command_for_update

Deprecated, replaced with CommandFactory::command_for_update

Provided methods

Build an Command that can instantiate Self.

See FromArgMatches::from_arg_matches for instantiating Self.

Build an Command that can update self.

See FromArgMatches::update_from_arg_matches for updating self.

Implementations on Foreign Types

👎 Deprecated since 3.1.0:

Replaced with `CommandFactory::command

👎 Deprecated since 3.1.0:

Replaced with `CommandFactory::command_for_update

Implementors