Skip to content

Commit f84e78b

Browse files
committed
Merge remote-tracking branch 'remotes/origin/master' into db-bump-version
2 parents 7fd823a + bb6f65f commit f84e78b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/rustup-cli/common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub fn confirm_advanced() -> Result<Confirm> {
4444
println!("1) Proceed with installation (default)");
4545
println!("2) Customize installation");
4646
println!("3) Cancel installation");
47+
print!(">");
4748

4849
let _ = std::io::stdout().flush();
4950
let input = read_line()?;

src/rustup-cli/rustup_mode.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,12 @@ pub fn cli() -> App<'static, 'static> {
370370
.long("std")
371371
.help("Standard library API documentation"),
372372
)
373-
.group(ArgGroup::with_name("page").args(&["book", "std"])),
373+
.arg(
374+
Arg::with_name("reference")
375+
.long("reference")
376+
.help("The Rust Reference"),
377+
)
378+
.group(ArgGroup::with_name("page").args(&["book", "std", "reference"])),
374379
);
375380

376381
if cfg!(not(target_os = "windows")) {
@@ -918,6 +923,8 @@ fn doc(cfg: &Cfg, m: &ArgMatches) -> Result<()> {
918923
"book/index.html"
919924
} else if m.is_present("std") {
920925
"std/index.html"
926+
} else if m.is_present("reference") {
927+
"reference/index.html"
921928
} else {
922929
"index.html"
923930
};

tests/cli-inst-interactive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn blank_lines_around_stderr_log_output_install() {
8585
assert!(out.stdout.contains(
8686
r"
8787
3) Cancel installation
88-
88+
>
8989
9090
stable installed - 1.1.0 (hash-s-2)
9191
@@ -107,7 +107,7 @@ fn blank_lines_around_stderr_log_output_update() {
107107
assert!(out.stdout.contains(
108108
r"
109109
3) Cancel installation
110-
110+
>
111111
112112
113113
Rust is installed now. Great!

0 commit comments

Comments
 (0)