pub fn parse(opt_args: String) -> Options {
        let mut options = Options::default();

        if opt_args.len() > 0 {
            for arg in opt_args.split(",") {
                match arg.find('=') {
                    Some(position) => {
                        let (key, value) = arg.split_at(position);
                        Options::parse_key_value(&mut options, key, &value[1..value.len()]);
                    },
                    None => { Options::parse_directive(&mut options, arg); }
                }
            }
        }

        options
    }
/// Turn a string of command-line arguments into an `Options` instance
Turn a string of command-line arguments into an `Options` instance
Turn a string of command - line arguments into an ` Options ` instance
pub fn parse(opt_args: String) -> Options {
        let mut options = Options::default();
        if opt_args.len() > 0 {
            for arg in opt_args.split(",") {
                match arg.find('=') {
                    Some(position) => {
                        let (key, value) = arg.split_at(position);
                        Options::parse_key_value(&mut options, key, &value[1..value.len()]);
                    },
                    None => { Options::parse_directive(&mut options, arg); }
                }
            }
        }
        options
    }
pub fn parse ( opt_args : String ) -> Options { let mut options = Options :: default ( ) ; if opt_args . len ( ) > 0 { for arg in opt_args . split ( " " ) { match arg . find ( '=' ) { Some ( position ) => { let ( key , value ) = arg . split_at ( position ) ; Options :: parse_key_value ( & mut options , key , & value [ 1 .. value . len ( ) ] ) ; } , None => { Options :: parse_directive ( & mut options , arg ) ; } } } } options }
Turn a string of command-line arguments into an `Options` instance
Turn a string of command - line arguments into an ` Options ` instance
opt_args
String
opt_args
String