Skip to main content

retired_flag_replacement

Function retired_flag_replacement 

Source
pub fn retired_flag_replacement(flag: &str) -> Option<&'static str>
Expand description

The current flag for a retired --session-* spelling, for the unrecognized-flag error. The retired spellings are not accepted; this only lets the error name the flag the operator meant, which edit distance alone gets wrong (--sessions-max is closer to --session-name than to --session-keep).