fn check_for_help_and_version_str(&self, arg: &RawOsStr) -> Option<ParseResult> {
        debug!("Parser::check_for_help_and_version_str");
        debug!(
            "Parser::check_for_help_and_version_str: Checking if --{:?} is help or version...",
            arg
        );

        if let Some(help) = self.cmd.find(&Id::help_hash()) {
            if let Some(h) = help.long {
                if arg == h && !self.is_set(AS::NoAutoHelp) && !self.cmd.is_disable_help_flag_set()
                {
                    debug!("Help");
                    return Some(ParseResult::HelpFlag);
                }
            }
        }

        if let Some(version) = self.cmd.find(&Id::version_hash()) {
            if let Some(v) = version.long {
                if arg == v
                    && !self.is_set(AS::NoAutoVersion)
                    && !self.cmd.is_disable_version_flag_set()
                {
                    debug!("Version");
                    return Some(ParseResult::VersionFlag);
                }
            }
        }

        debug!("Neither");
        None
    }
// Retrieves the names of all args the user has supplied thus far, except required ones
// because those will be listed in self.required
Retrieves the names of all args the user has supplied thus far, except required ones
because those will be listed in self.required
Retrieves the names of all args the user has supplied thus far except required ones because those will be listed in self . required
fn check_for_help_and_version_str(&self, arg: &RawOsStr) -> Option<ParseResult> {
        debug!("Parser::check_for_help_and_version_str");
        debug!(
            "Parser::check_for_help_and_version_str: Checking if --{:?} is help or version...",
            arg
        );
        if let Some(help) = self.cmd.find(&Id::help_hash()) {
            if let Some(h) = help.long {
                if arg == h && !self.is_set(AS::NoAutoHelp) && !self.cmd.is_disable_help_flag_set()
                {
                    debug!("Help");
                    return Some(ParseResult::HelpFlag);
                }
            }
        }
        if let Some(version) = self.cmd.find(&Id::version_hash()) {
            if let Some(v) = version.long {
                if arg == v
                    && !self.is_set(AS::NoAutoVersion)
                    && !self.cmd.is_disable_version_flag_set()
                {
                    debug!("Version");
                    return Some(ParseResult::VersionFlag);
                }
            }
        }
        debug!("Neither");
        None
    }
fn check_for_help_and_version_str ( & self , arg : & RawOsStr ) -> Option < ParseResult > { debug ! ( " " ) ; debug ! ( " " arg ) ; if let Some ( help ) = self . cmd . find ( & Id :: help_hash ( ) ) { if let Some ( h ) = help . long { if arg == h && ! self . is_set ( AS :: NoAutoHelp ) && ! self . cmd . is_disable_help_flag_set ( ) { debug ! ( " " ) ; return Some ( ParseResult :: HelpFlag ) ; } } } if let Some ( version ) = self . cmd . find ( & Id :: version_hash ( ) ) { if let Some ( v ) = version . long { if arg == v && ! self . is_set ( AS :: NoAutoVersion ) && ! self . cmd . is_disable_version_flag_set ( ) { debug ! ( " " ) ; return Some ( ParseResult :: VersionFlag ) ; } } } debug ! ( " " ) ; None }
Retrieves the names of all args the user has supplied thus far, except required ones
because those will be listed in self.required
Retrieves the names of all args the user has supplied thus far except required ones because those will be listed in self . required
&self
arg
&RawOsStr
&self
arg
&RawOsStr