Skip to main content

removed_command_error

Function removed_command_error 

Source
pub fn removed_command_error(args: &[String]) -> Option<String>
Expand description

Explains a command line that uses an entry removed in 0.31.0 or 0.41.0, before argument parsing reports it as an unknown command. args includes the program name. Only the subcommand path (the first subcommand token after the top-level options and the leaf right after it) is inspected, so positional values such as docs read <file> <heading> or --entry tree are never mistaken for commands.