Include help in --list

This commit is contained in:
Eric Huss 2022-01-16 11:14:04 -08:00
parent e778b3d90a
commit b655a8965c

View file

@ -144,6 +144,14 @@ fn list_commands(config: &Config) -> BTreeMap<String, CommandInfo> {
}
}
// `help` is special, so it needs to be inserted separately.
commands.insert(
"help".to_string(),
CommandInfo::BuiltIn {
about: Some("Displays help for a cargo subcommand".to_string()),
},
);
commands
}