fn verify_flags(&self, parsed_flags: &HashMap<String, String>, required_flags: std::vec::Vec<Flag>) -> bool {
        for required_flag in required_flags {
            if required_flag.required {
                let had_flag = parsed_flags.contains_key(required_flag.identifier);
                if !had_flag {
                    println!("Missing a required flag: {}", required_flag.identifier);
                    return false;
                }
            }
        }
        return true;
    }
///Determines whether the provided flags meet a command's required flags and are valid.
Determines whether the provided flags meet a command's required flags and are valid.
Determines whether the provided flags meet a command ' s required flags and are valid .
fn verify_flags(&self, parsed_flags: &HashMap<String, String>, required_flags: std::vec::Vec<Flag>) -> bool {
        for required_flag in required_flags {
            if required_flag.required {
                let had_flag = parsed_flags.contains_key(required_flag.identifier);
                if !had_flag {
                    println!("Missing a required flag: {}", required_flag.identifier);
                    return false;
                }
            }
        }
        return true;
    }
fn verify_flags ( & self , parsed_flags : & HashMap < String , String > , required_flags : std :: vec :: Vec < Flag > ) -> bool { for required_flag in required_flags { if required_flag . required { let had_flag = parsed_flags . contains_key ( required_flag . identifier ) ; if ! had_flag { println ! ( " " required_flag identifier ) ; return false ; } } } return true ; }
Determines whether the provided flags meet a command's required flags and are valid.
Determines whether the provided flags meet a command ' s required flags and are valid .
&self
parsed_flags
&HashMap<String, String>
required_flags
std::vec::Vec<Flag>
&self
parsed_flags
&HashMap<String, String>
required_flags
std::vec::Vec<Flag>