Struct arguments::Arguments [] [src]

pub struct Arguments {
    pub program: String,
    pub options: Options,
    pub orphans: Vec<String>,
}

Command-line arguments.

Fields

program: String

The name of the executable.

options: Options

Raw options (all strings).

orphans: Vec<String>

Unclassified arguments.

Methods

impl Arguments
[src]

fn get<T: Any + Clone + FromStr>(&self, name: &str) -> Option<T>

Get the value of an option (if present) converted to a specific type (if possible).

Trait Implementations

impl Debug for Arguments
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.