Skip to content

Commit

Permalink
Rollup merge of rust-lang#95875 - aswild:pr/alias-cmd-paths, r=Mark-S…
Browse files Browse the repository at this point in the history
…imulacrum

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.
  • Loading branch information
matthiaskrgr authored Apr 11, 2022
2 parents 78ff04d + e4bbbac commit a947ff6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a947ff6

Please sign in to comment.