Struct commands::parser::ParameterNode [] [src]

pub struct ParameterNode {
    pub node: TreeNode,
    pub required: bool,
    pub kind: ParameterKind,
}

A node representing a parameter for a command.

Fields

TreeNode data.

A required parameter must be supplied for the command line being parsed to be valid.

What type of ParameterKind this is.

Methods

impl ParameterNode
[src]

Construct a new ParameterNode.

Trait Implementations

impl NodeOps for ParameterNode
[src]

Record this parameter value.

Can this node be accepted in the current parser state? By default, a node can be accepted when it hasn't been seen yet. Read more

By default named and simple parameters complete only to the token being input while flag parameters complete to the name of the flag.

By default, a node matches a token when the name of the node starts with the token. Read more