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§

source

const COMMANDS: &'static [&'static CommandInfo]

Info for the commands.

Provided Methods§

source

fn dynamic_commands() -> &'static [&'static CommandInfo]

Get a list of commands that are discovered at runtime.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: SubCommand> SubCommands for T

source§

const COMMANDS: &'static [&'static CommandInfo] = _