Macro sarge::get_str

source ·
macro_rules! get_str {
    ( $parser:ident, short, $tag:expr ) => { ... };
    ( $parser:ident, long, $tag:expr ) => { ... };
    ( $parser:ident, both, $short:expr, $long:expr ) => { ... };
}
Expand description

Gets an argument from the parser, returning the contained value.

Panics if the argument doesn’t exist, or if the arguments type isn’t ArgType::String.