Skip to content

Commit 69fb8f6

Browse files
authored
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.
2 parents 361a0ec + e4bbbac commit 69fb8f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/bootstrap/builder.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,9 @@ impl<'a> Builder<'a> {
621621

622622
pub fn get_help(build: &Build, subcommand: &str) -> Option<String> {
623623
let kind = match subcommand {
624-
"build" => Kind::Build,
625-
"doc" => Kind::Doc,
626-
"test" => Kind::Test,
624+
"build" | "b" => Kind::Build,
625+
"doc" | "d" => Kind::Doc,
626+
"test" | "t" => Kind::Test,
627627
"bench" => Kind::Bench,
628628
"dist" => Kind::Dist,
629629
"install" => Kind::Install,

0 commit comments

Comments
 (0)