Rollup merge of #95875 - aswild:pr/alias-cmd-paths, r=Mark-Simulacrum
bootstrap: show available paths help text for aliased subcommands Running `./x.py build -h -v` shows a list of available build targets, but the short alias `./x.py b -h -v` does not. Fix so that the aliases behave the same as their spelled out counterparts.
This commit is contained in:
commit
69fb8f6349
@ -621,9 +621,9 @@ impl<'a> Builder<'a> {
|
|||||||
|
|
||||||
pub fn get_help(build: &Build, subcommand: &str) -> Option<String> {
|
pub fn get_help(build: &Build, subcommand: &str) -> Option<String> {
|
||||||
let kind = match subcommand {
|
let kind = match subcommand {
|
||||||
"build" => Kind::Build,
|
"build" | "b" => Kind::Build,
|
||||||
"doc" => Kind::Doc,
|
"doc" | "d" => Kind::Doc,
|
||||||
"test" => Kind::Test,
|
"test" | "t" => Kind::Test,
|
||||||
"bench" => Kind::Bench,
|
"bench" => Kind::Bench,
|
||||||
"dist" => Kind::Dist,
|
"dist" => Kind::Dist,
|
||||||
"install" => Kind::Install,
|
"install" => Kind::Install,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user