Trait clap::CommandFactory
source · [−]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
Required Methods
fn into_app_for_update<'help>() -> Command<'help>
fn into_app_for_update<'help>() -> Command<'help>
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
.
fn command_for_update<'help>() -> Command<'help>
fn command_for_update<'help>() -> Command<'help>
Build a Command
that can update self
.
See FromArgMatches::update_from_arg_matches_mut
for updating self
.