Skip to content

Commit e4bbbac

Browse files
committed
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.
1 parent f7b4824 commit e4bbbac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)