Crate argonaut [] [src]

A simple argument parsing library.

Lifetimes

'def: argument definition

The lifetime of argument definition passed to parse

'tar: target

The lifetime of target pointers used when defining arguments.

Structs

ArgDef

The description of an expected argument.

Enums

ParseError

An error found when parsing arguments.

Traits

CollectionTarget

Allows a collection to be extended with values read from arguments.

OptionTarget

Allows every type that is FromStr to be read from an argument.

SingleTarget

Allows every type that is FromStr to be read from an argument.

Functions

parse

Parses the given arguments and updates the defined variables with them.

parse_plain

Parses the given arguments and updates the defined variables with them. This version does not print usage in the case of parse errors, nor does it 'un-propagate' parsing errors.