From e4bbbacb8c38d523bd1bb2ea1a248c9fdb9dae61 Mon Sep 17 00:00:00 2001 From: Allen Wild Date: Sun, 10 Apr 2022 03:10:04 -0400 Subject: [PATCH] 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. --- src/bootstrap/builder.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 8c06a007013..0276d15a5b4 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -621,9 +621,9 @@ macro_rules! describe { pub fn get_help(build: &Build, subcommand: &str) -> Option { let kind = match subcommand { - "build" => Kind::Build, - "doc" => Kind::Doc, - "test" => Kind::Test, + "build" | "b" => Kind::Build, + "doc" | "d" => Kind::Doc, + "test" | "t" => Kind::Test, "bench" => Kind::Bench, "dist" => Kind::Dist, "install" => Kind::Install,