Trait clap::CommandFactory
source · pub trait CommandFactory: Sized {
// Required methods
fn into_app<'help>() -> Command<'help>;
fn into_app_for_update<'help>() -> Command<'help>;
// Provided methods
fn command<'help>() -> Command<'help> { ... }
fn command_for_update<'help>() -> Command<'help> { ... }
}
Expand description
Required Methods§
sourcefn into_app_for_update<'help>() -> Command<'help>
fn into_app_for_update<'help>() -> Command<'help>
Deprecated, replaced with CommandFactory::command_for_update
Provided Methods§
sourcefn command<'help>() -> Command<'help>
fn command<'help>() -> Command<'help>
Build a Command
that can instantiate Self
.
See FromArgMatches::from_arg_matches_mut
for instantiating Self
.
sourcefn 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
.
Object Safety§
This trait is not object safe.