Skip to content

Commit

Permalink
Make rustup install <toolchain> a hidden synonym for `rustup update…
Browse files Browse the repository at this point in the history
… <toolchain>`
  • Loading branch information
brson committed May 9, 2016
1 parent 33062a1 commit 4f91f61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rustup-cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ pub fn cli() -> App<'static, 'static> {
.subcommand(SubCommand::with_name("show")
.about("Show the active and installed toolchains")
.after_help(SHOW_HELP))
.subcommand(SubCommand::with_name("install")
.about("Update Rust toolchains")
.setting(AppSettings::Hidden) // synonym for 'update'
.arg(Arg::with_name("toolchain")
.required(true)))
.subcommand(SubCommand::with_name("update")
.about("Update Rust toolchains")
.after_help(UPDATE_HELP)
Expand Down

0 comments on commit 4f91f61

Please sign in to comment.