diff options
| author | Allen Wild <allenwild93@gmail.com> | 2022-04-10 03:10:04 -0400 |
|---|---|---|
| committer | Allen Wild <allenwild93@gmail.com> | 2022-04-10 03:17:05 -0400 |
| commit | e4bbbacb8c38d523bd1bb2ea1a248c9fdb9dae61 (patch) | |
| tree | d8953774cdcf961c71edf6edb742c9e91d4cdebf | |
| parent | f7b4824731483df9ac911cb5b60fe85f04162ad0 (diff) | |
| download | rust-e4bbbacb8c38d523bd1bb2ea1a248c9fdb9dae61.tar.gz rust-e4bbbacb8c38d523bd1bb2ea1a248c9fdb9dae61.zip | |
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, |
