pub fn contains_definition(&self, needle: &str) -> bool {
        match self.definitions.get(&String::from(needle)) {
            Some(_) => true,
            None => false,
        }
    }
/// Returns a boolean for the question "Does the command include the definition option `needle`?"
///
/// # Examples
///
/// ```
/// let c = commandlines::Command::new();
///
/// if c.contains_definition("--spam") {
///     // command included a `--spam=[definition]` option
/// }
/// ```
Returns a boolean for the question "Does the command include the definition option `needle`?"
Returns a boolean for the question " Does the command include the definition option ` needle ` ? "
pub fn contains_definition(&self, needle: &str) -> bool {
        match self.definitions.get(&String::from(needle)) {
            Some(_) => true,
            None => false,
        }
    }
pub fn contains_definition ( & self , needle : & str ) -> bool { match self . definitions . get ( & String :: from ( needle ) ) { Some ( _ ) => true , None => false , } }
Returns a boolean for the question "Does the command include the definition option `needle`?"
Returns a boolean for the question " Does the command include the definition option ` needle ` ? "
&self
needle
&str
&self
needle
&str
examples
```
let c = commandlines::Command::new().

if c.contains_definition("--spam") {
command included a `--spam=[definition]` option
}
```
` ` ` let c = commandlines :: Command :: new () . if c . contains_definition ( " -- spam " ) { command included a ` -- spam = [ definition ] ` option } ` ` `