Struct foropts::Config [] [src]

pub struct Config<'a, T> { /* fields omitted */ }

The configuration for the argument parser.

Parameters

<'a> – The lifetime of the arguments’ actions

<T> – The result type that each argument will be parsed into

Methods

impl<'a, T> Config<'a, T>
[src]

[src]

Creates a new foropts::Builder given the name of the program.

[src]

Sets the program name.

[src]

Sets the version string.

[src]

Sets the author string.

[src]

Sets the description string.

[src]

Adds an argument to the list of arguments, returning Result::Err if the argument cannot be added.

[src]

Adds an argument to the list of arguments.

Panics

Panics if the argument cannot be added.

[src]

Adds arguments to the list of arguments.

Panics

Panics if an argument cannot be added.

Important traits for Iter<'a, 'b, I, T>
[src]

Given an iterator over the unparsed arguments, returns an iterator over the parsed arguments.

[src]

Exits with an error message and usage information printed on stderr, with exit code 1.

[src]

Prints usage information to stdout and exits with code 0.

[src]

Prints version information to stdout and exits with code 0.

[src]

Writes version information to the given Write.

[src]

Writes usage information to the given Write.

Trait Implementations

impl<'a, T: Debug> Debug for Config<'a, T>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, T> !Send for Config<'a, T>

impl<'a, T> !Sync for Config<'a, T>