diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-11 12:06:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-11 12:06:55 +0200 |
| commit | 69fb8f63499ef8f677481d76d92ef91f019e6291 (patch) | |
| tree | 2ffd0539673338969a1895b388f975fe2786c0f8 | |
| parent | 361a0ec3ab6b300471b50aafd1c8c99533dbc511 (diff) | |
| parent | e4bbbacb8c38d523bd1bb2ea1a248c9fdb9dae61 (diff) | |
| download | rust-69fb8f63499ef8f677481d76d92ef91f019e6291.tar.gz rust-69fb8f63499ef8f677481d76d92ef91f019e6291.zip | |
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.
| -rw-r--r-- | src/bootstrap/builder.rs | 6 |
1 files 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 @@ impl<'a> Builder<'a> { pub fn get_help(build: &Build, subcommand: &str) -> Option<String> { 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, |
