pub fn opt(&mut self, short_name: &str, long_name: &str, desc: &str,
                       hint: &str, hasarg: HasArg, occur: Occur) -> &mut Options {
        let len = short_name.len();
        assert!(len == 1 || len == 0);
        self.grps.push(OptGroup {
            short_name: short_name.to_string(),
            long_name: long_name.to_string(),
            hint: hint.to_string(),
            desc: desc.to_string(),
            hasarg: hasarg,
            occur: occur
        });
        self
    }
/// Create a generic option group, stating all parameters explicitly.
Create a generic option group, stating all parameters explicitly.
Create a generic option group stating all parameters explicitly .
pub fn opt(&mut self, short_name: &str, long_name: &str, desc: &str,
                       hint: &str, hasarg: HasArg, occur: Occur) -> &mut Options {
        let len = short_name.len();
        assert!(len == 1 || len == 0);
        self.grps.push(OptGroup {
            short_name: short_name.to_string(),
            long_name: long_name.to_string(),
            hint: hint.to_string(),
            desc: desc.to_string(),
            hasarg: hasarg,
            occur: occur
        });
        self
    }
pub fn opt ( & mut self , short_name : & str , long_name : & str , desc : & str , hint : & str , hasarg : HasArg , occur : Occur ) -> & mut Options { let len = short_name . len ( ) ; assert ! ( len 1 len 0 ) ; self . grps . push ( OptGroup { short_name : short_name . to_string ( ) , long_name : long_name . to_string ( ) , hint : hint . to_string ( ) , desc : desc . to_string ( ) , hasarg : hasarg , occur : occur } ) ; self }
Create a generic option group, stating all parameters explicitly.
Create a generic option group stating all parameters explicitly .
&mut self
short_name
&str
long_name
&str
desc
&str
hint
&str
hasarg
HasArg
occur
Occur
&mut self
short_name
&str
long_name
&str
desc
&str
hint
&str
hasarg
HasArg
occur
Occur