Skip to content

Commit 6bc5d2c

Browse files
authored
Merge pull request #3044 from jbalintbiro/up-alias
Add `up` as an alias of the `update` command
2 parents a7809fe + f887c19 commit 6bc5d2c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/cli/rustup_mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ pub(crate) fn cli() -> App<'static, 'static> {
313313
.subcommand(
314314
SubCommand::with_name("update")
315315
.about("Update Rust toolchains and rustup")
316-
.aliases(&["upgrade"])
316+
.aliases(&["upgrade", "up"])
317317
.after_help(UPDATE_HELP)
318318
.arg(
319319
Arg::with_name("toolchain")

tests/cli-exact.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ fn check_updates_none() {
170170
expect_ok(config, &["rustup", "upgrade", "stable"]);
171171
expect_ok(config, &["rustup", "upgrade", "beta"]);
172172
expect_ok(config, &["rustup", "upgrade", "nightly"]);
173+
expect_ok(config, &["rustup", "up", "stable"]);
174+
expect_ok(config, &["rustup", "up", "beta"]);
175+
expect_ok(config, &["rustup", "up", "nightly"]);
173176
expect_stdout_ok(
174177
config,
175178
&["rustup", "check"],

0 commit comments

Comments
 (0)