pub fn has_invalid_definitions(&self, valid_defs: &[&str]) -> bool {
        for definition in self.definitions.keys() {
            if !valid_defs.contains(&&definition[..]) {
                return true;
            }
        }

        false
    }
/// Returns a boolean for the question "Does the command include any invalid definition options based upon valid definition options defined in `valid_defs`?"
///
/// # Examples
/// Define valid definition options in a slice or array and pass a reference to this data structure as an argument to the method.
///
/// ```
/// const VALIDDEFS: [&str; 2] = [
///       "-o",
///       "--output",
/// ];
///
/// let c = commandlines::Command::new();
///
/// if c.has_invalid_definitions(&VALIDDEFS) {
///     eprintln!("Invalid definition option detected");
/// }
/// ```
Returns a boolean for the question "Does the command include any invalid definition options based upon valid definition options defined in `valid_defs`?"
Returns a boolean for the question " Does the command include any invalid definition options based upon valid definition options defined in ` valid_defs ` ? "
pub fn has_invalid_definitions(&self, valid_defs: &[&str]) -> bool {
        for definition in self.definitions.keys() {
            if !valid_defs.contains(&&definition[..]) {
                return true;
            }
        }
        false
    }
pub fn has_invalid_definitions ( & self , valid_defs : & [ & str ] ) -> bool { for definition in self . definitions . keys ( ) { if ! valid_defs . contains ( & & definition [ .. ] ) { return true ; } } false }
Returns a boolean for the question "Does the command include any invalid definition options based upon valid definition options defined in `valid_defs`?"
Returns a boolean for the question " Does the command include any invalid definition options based upon valid definition options defined in ` valid_defs ` ? "
&self
valid_defs
&[&str]
&self
valid_defs
&[&str]
examples
Define valid definition options in a slice or array and pass a reference to this data structure as an argument to the method.



let c = commandlines::Command::new().

if c.has_invalid_definitions(&VALIDDEFS) {
eprintln!("Invalid definition option detected");
}
```
Define valid definition options in a slice or array and pass a reference to this data structure as an argument to the method . let c = commandlines :: Command :: new () . if c . has_invalid_definitions ( &VALIDDEFS ) { eprintln! ( " Invalid definition option detected " ) ; } ` ` `