Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rustup doc. #403

Merged
merged 1 commit into from
May 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/rustup-cli/rustup_mode.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use clap::{App, Arg, AppSettings, SubCommand, ArgMatches};
use clap::{App, Arg, ArgGroup, AppSettings, SubCommand, ArgMatches};
use common;
use rustup::{Cfg, Toolchain, command};
use rustup::telemetry::TelemetryMode;
Expand Down Expand Up @@ -159,6 +159,17 @@ pub fn cli() -> App<'static, 'static> {
.required(true)))
.subcommand(SubCommand::with_name("remove")
.about("Remove the override toolchain for a directory")))
.subcommand(SubCommand::with_name("doc")
.about("Open the documentation for the current toolchain.")
.arg(Arg::with_name("book")
.long("book")
.help("The Rust Programming Language book"))
.arg(Arg::with_name("std")
.long("std")
.help("Standard library API documentation"))
.group(ArgGroup::with_name("page")
.args(&["book", "std"]))
)
.subcommand(SubCommand::with_name("self")
.about("Modify the rustup installation")
.setting(AppSettings::SubcommandRequiredElseHelp)
Expand Down