Struct rustop::Parser [] [src]

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

The command line parser.

Methods

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

Return a new parser.

Add and return an option.

  • var is the associated variable
  • varname is the name of the variable as a string

Add and return a parameter.

  • var is the associated variable
  • varname is the name of the variable as a string

Set whether short options should be generated automatically.

Specify an additional stop string.

Set the command name.

Set the usage string.

Set the synopsis string.

Set the version string.

Add help option.

Parse vector of command line arguments.

Returns a vector of remaining (unparsed) arguments.

Write the usage string to some output stream.

Trait Implementations

impl<'a> Default for Parser<'a>
[src]

Returns the "default value" for a type. Read more