Trait argh::SubCommands
source · pub trait SubCommands: FromArgs {
const COMMANDS: &'static [&'static CommandInfo];
// Provided method
fn dynamic_commands() -> &'static [&'static CommandInfo] { ... }
}
Expand description
A FromArgs
implementation that can parse into one or more subcommands.
Required Associated Constants§
sourceconst COMMANDS: &'static [&'static CommandInfo]
const COMMANDS: &'static [&'static CommandInfo]
Info for the commands.
Provided Methods§
sourcefn dynamic_commands() -> &'static [&'static CommandInfo]
fn dynamic_commands() -> &'static [&'static CommandInfo]
Get a list of commands that are discovered at runtime.
Object Safety§
This trait is not object safe.