Crate debate_parser

Source
Expand description

Low-level implementation of argument handling. Takes care of distinctions between flags, options, and positionals, that sort of thing. No type handling happens here. Usually this is too low level to use directly.

Structs§

Arg
A single, raw argument passed in from the command line.
ArgumentsParser
An ArgumentsParser is the main entry point into debate_parser. It parses arguments in each call to next_arg, sending those arguments to the given Visitor. It handles distinguishing flags, options, and positionals; logic related to how flags get their argument values, and the --

Traits§

ArgAccess
ArgAccess allows a visitor to decide if a given parameter needs an argument, based on the identity of the flag or option.
AsBytes
Basically the same as AsRef<u8>, but we want it for OsString and OsStr, too.
Visitor
The ArgumentsParser type operates by passing arguments it finds into a Visitor, to be handled.

Functions§

parser