Struct rustop::Parser [] [src]

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

The command line parser.

Methods

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

[src]

Return a new parser.

[src]

Add and return an option.

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

[src]

Add and return a parameter.

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

[src]

Set whether short options should be generated automatically.

[src]

Specify an additional stop string.

[src]

Set the command name.

[src]

Set the usage string.

[src]

Set the synopsis string.

[src]

Set the version string.

[src]

Add help option.

[src]

Parse vector of command line arguments.

Returns a vector of remaining (unparsed) arguments.

[src]

Write the usage string to some output stream.

Trait Implementations

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

[src]

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