Skip to main content

is_version_arg

Function is_version_arg 

Source
pub fn is_version_arg(cmd: &Command<'_>, word: &OsStr) -> bool
Expand 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.