mirror of
https://github.com/rust-lang/cargo
synced 2024-10-02 22:13:47 +00:00
Include help
in --list
This commit is contained in:
parent
e778b3d90a
commit
b655a8965c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue