Struct commands::parser::Command [] [src]

pub struct Command<'a> { /* fields omitted */ }

Description of a command to be added to the CommandTree.

The lifetime parameter 'a refers to the lifetime of the strings used for command names and help text.

Methods

impl<'a> Command<'a>
[src]

Construct a default (blank) command with the given name.

Mark the command as hidden. Hidden commands will match within the parser, but are not listed during completion.

Give the command a priority. This is used when sorting out conflicts during matching and completion.

This is not commonly needed.

Supply help text for the command.

Add a Parameter to the command.

The wrapped_root signifies the path to the command that should be wrapped by this command. This is used for the help command.