pub fn parse_mops(arg_list: &[String]) -> Option<Vec<String>> {
    let mut return_vec: Vec<String> = Vec::new();

    // iterate through the option argument list argument
    for arg in arg_list {
        if !arg.starts_with("--") {
            // exclude long option format
            let t = &arg[..];
            for x in t.chars() {
                // iterate through characters in short options
                if x != '-' {
                    // assume any character in a short option is a unique option
                    let option_string = format!("-{}", x); // format as `-[x]` for storage
                    return_vec.push(option_string);
                }
            }
        }
    }

    // if there were no short options parsed with this function, return `None`
    if return_vec.is_empty() {
        None
    } else {
        Some(return_vec)
    }
}
/// Returns `Option<Vec<String>>` that includes unique short options parsed from the command arguments, including any multi-option short syntax options.
/// Returns `None` if there were no short options in the command
///
/// # Remarks
/// Note that this function is not UTF-8 compliant and enforces a stricter character set definition than other areas of the library. It will not properly parse multi-option short syntax options that include characters outside of the Unicode Basic Latin set.  This function supports the multi-option short syntax argument style defined in the POSIX guidelines (i.e., POSIX option strings should include only characters in the alphanumeric subset of the Unicode Basic Latin set).
Returns `Option>` that includes unique short options parsed from the command arguments, including any multi-option short syntax options.
Returns `None` if there were no short options in the command
Returns ` Option > ` that includes unique short options parsed from the command arguments including any multi - option short syntax options . Returns ` None ` if there were no short options in the command
pub fn parse_mops(arg_list: &[String]) -> Option<Vec<String>> {
    let mut return_vec: Vec<String> = Vec::new();
    // iterate through the option argument list argument
    for arg in arg_list {
        if !arg.starts_with("--") {
            // exclude long option format
            let t = &arg[..];
            for x in t.chars() {
                // iterate through characters in short options
                if x != '-' {
                    // assume any character in a short option is a unique option
                    let option_string = format!("-{}", x); // format as `-[x]` for storage
                    return_vec.push(option_string);
                }
            }
        }
    }
    // if there were no short options parsed with this function, return `None`
    if return_vec.is_empty() {
        None
    } else {
        Some(return_vec)
    }
}
pub fn parse_mops ( arg_list : & [ String ] ) -> Option < Vec < String > > { let mut return_vec : Vec < String > = Vec :: new ( ) ; // iterate through the option argument list argument for arg in arg_list { if ! arg . starts_with ( " " ) { // exclude long option format let t = & arg [ .. ] ; for x in t . chars ( ) { // iterate through characters in short options if x != '-' { // assume any character in a short option is a unique option let option_string = format ! ( " " x ) ; // format as `-[x]` for storage return_vec . push ( option_string ) ; } } } } // if there were no short options parsed with this function, return `None` if return_vec . is_empty ( ) { None } else { Some ( return_vec ) } }
Returns `Option<Vec<String>>` that includes unique short options parsed from the command arguments, including any multi-option short syntax options.
Returns ` Option<Vec<String >> ` that includes unique short options parsed from the command arguments including any multi - option short syntax options .
arg_list
&[String]
arg_list
&[String]
remarks
Note that this function is not UTF-8 compliant and enforces a stricter character set definition than other areas of the library. It will not properly parse multi-option short syntax options that include characters outside of the Unicode Basic Latin set.  This function supports the multi-option short syntax argument style defined in the POSIX guidelines .
Note that this function is not UTF - 8 compliant and enforces a stricter character set definition than other areas of the library . It will not properly parse multi - option short syntax options that include characters outside of the Unicode Basic Latin set . This function supports the multi - option short syntax argument style defined in the POSIX guidelines .