Struct umbra_lang::Args[][src]

pub struct Args {
    pub longflags: Vec<String>,
    pub script: Vec<String>,
}
Expand description

A collection of interpreter flags and script arguments.

Currently no actual handling is done here, just parsing.

Fields

longflags: Vec<String>

The flags passed to the interpreter, everything before the first non-flag.

script: Vec<String>

The script arguments, everything after and including the first non-flag.

Implementations

Parse std::env::args() into flags beginning with -- and script arguments.

Errors

Will return Err if any arguments are invalid, i.e. only have a single dash.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.