logo
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 a Command relevant for a user-defined container.

Derived as part of Parser.

Required methods

Deprecated, replaced with CommandFactory::command

Deprecated, replaced with CommandFactory::command_for_update

Provided methods

Build a Command that can instantiate Self.

See FromArgMatches::from_arg_matches_mut for instantiating Self.

Build a Command that can update self.

See FromArgMatches::update_from_arg_matches_mut for updating self.

Implementations on Foreign Types

Implementors