pub fn is_version_arg(cmd: &Command<'_>, word: &OsStr) -> boolExpand description
Whether one exact root argument selects a declared or synthesized version action.
Declared flags are checked first because they shadow the built-in --version and -V
spellings. Executable views use this before projection so custom version spellings keep
reporting the package that owns the view.