Struct clap::SubCommand
[−]
[src]
pub struct SubCommand<'n, 'a> { // some fields omitted }
The abstract representation of a command line subcommand used by the consumer of the library.
This struct is used by the library consumer and describes all the valid options of the subcommand for their program. SubCommands are treated like "sub apps" and contain all the same possibilities (such as their own arguments and subcommands).
Example
SubCommand::with_name("conifg") .about("Used for configuration") .arg(Arg::with_name("config_file") .help("The configuration file to use") .index(1))