pub fn reqopt(&mut self, short_name: &str, long_name: &str, desc: &str, hint: &str)
                          -> &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: Yes,
            occur: Req
        });
        self
    }
/// Create a long option that is required and takes an argument.
///
/// * `short_name` - e.g. `"h"` for a `-h` option, or `""` for none
/// * `long_name` - e.g. `"help"` for a `--help` option, or `""` for none
/// * `desc` - Description for usage help
/// * `hint` - Hint that is used in place of the argument in the usage help,
///   e.g. `"FILE"` for a `-o FILE` option
Create a long option that is required and takes an argument.
Create a long option that is required and takes an argument .
pub fn reqopt(&mut self, short_name: &str, long_name: &str, desc: &str, hint: &str)
                          -> &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: Yes,
            occur: Req
        });
        self
    }
pub fn reqopt ( & mut self , short_name : & str , long_name : & str , desc : & str , hint : & str ) -> & 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 : Yes , occur : Req } ) ; self }
Create a long option that is required and takes an argument.
Create a long option that is required and takes an argument .
&mut self
short_name
&str
long_name
&str
desc
&str
hint
&str
&mut self
short_name
&str
long_name
&str
desc
&str
hint
&str