Struct bdrck_params::command::Command [] [src]

pub struct Command {
    pub name: String,
    pub help: String,
    pub options: Vec<Option>,
    pub arguments: Vec<Argument>,
    pub last_argument_is_variadic: bool,
}

A command is a single sub-command for a given program. Each command has its own description as well as sets of options and arguments that it accepts.

Fields

Methods

impl Command
[src]

Constructs a new Command structure. Performs some validation on the inputs, and returns either a valid Command or an appropriate error.

Trait Implementations

impl Debug for Command
[src]

Formats the value using the given formatter.

impl PartialEq for Command
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.