detect_help_flag

Function detect_help_flag 

Source
pub fn detect_help_flag(args: &[String]) -> bool
Expand description

Detect whether the user-supplied args contain a likely “help” flag.

We look for:

  • -h
  • –help
  • help
  • /?
  • -?
  • –usage