Struct rargsxd::Arg [−][src]
pub struct Arg { /* fields omitted */ }
Argument struct
Implementations
impl Arg
[src]
impl Arg
[src]pub fn bool(name: &str, val: bool) -> Self
[src]
Creates a new bool (flag) argument
pub fn str(name: &str, val: &str) -> Self
[src]
Creates a new str (option) argument
pub fn short(&mut self, short: char) -> &mut Self
[src]
Sets the short value of the argument
pub fn help(&mut self, help: &str) -> &mut Self
[src]
Sets the help string of the argument
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Arg
impl RefUnwindSafe for Arg
impl UnwindSafe for Arg
impl UnwindSafe for Arg