Skip to content

Commit

Permalink
Merge pull request #496 from peschkaj/add-toolchain-help-to-install
Browse files Browse the repository at this point in the history
Adding TOOLCHAIN_HELP to rustup help install
  • Loading branch information
brson committed Jun 7, 2016
2 parents 51d0e38 + 252e45d commit 3bae543
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/rustup-cli/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,19 @@ stable, beta, and nightly toolchains from the official release
channels, then updates rustup itself.
If given a toolchain argument then `update` updates that toolchain,
the same as `rustup toolchain update`.";
the same as `rustup toolchain update`.
'toolchain' specifies a toolchain name, such as 'stable', 'nightly',
or '1.8.0'. For more information see `rustup help toolchain`.";

pub static TOOLCHAIN_INSTALL_HELP: &'static str =
r"
Installs a specific rust toolchain.
The 'install' command is an alias for 'rustup update <toolchain>'.
'toolchain' specifies a toolchain name, such as 'stable', 'nightly',
or '1.8.0'. For more information see `rustup help toolchain`.";

pub static DEFAULT_HELP: &'static str =
r"
Expand Down
1 change: 1 addition & 0 deletions src/rustup-cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ pub fn cli() -> App<'static, 'static> {
.after_help(SHOW_HELP))
.subcommand(SubCommand::with_name("install")
.about("Update Rust toolchains")
.after_help(TOOLCHAIN_INSTALL_HELP)
.setting(AppSettings::Hidden) // synonym for 'toolchain install'
.arg(Arg::with_name("toolchain")
.required(true)))
Expand Down

0 comments on commit 3bae543

Please sign in to comment.