@@ -100,7 +100,7 @@ fn plus_toolchain_value_parser(s: &str) -> clap::error::Result<ResolvableToolcha
100100#[ derive( Debug , Subcommand ) ]
101101#[ command( name = "rustup" , bin_name = "rustup[EXE]" ) ]
102102enum RustupSubcmd {
103- /// Update Rust toolchains
103+ /// Install or update the given toolchains, or by default the active toolchain
104104 #[ command( hide = true , after_help = INSTALL_HELP ) ]
105105 Install {
106106 #[ command( flatten) ]
@@ -302,7 +302,7 @@ enum ToolchainSubcmd {
302302 quiet : bool ,
303303 } ,
304304
305- /// Install or update a given toolchain
305+ /// Install or update the given toolchains, or by default the active toolchain
306306 #[ command( aliases = [ "update" , "add" ] ) ]
307307 Install {
308308 #[ command( flatten) ]
@@ -330,7 +330,6 @@ enum ToolchainSubcmd {
330330#[ derive( Debug , Default , Args ) ]
331331struct UpdateOpts {
332332 #[ arg(
333- required = true ,
334333 help = OFFICIAL_TOOLCHAIN_ARG_HELP ,
335334 num_args = 1 ..,
336335 ) ]
@@ -584,7 +583,7 @@ pub async fn main(current_dir: PathBuf, process: &Process) -> Result<utils::Exit
584583
585584 match subcmd {
586585 RustupSubcmd :: DumpTestament => common:: dump_testament ( process) ,
587- RustupSubcmd :: Install { opts } => update ( cfg, opts, false ) . await ,
586+ RustupSubcmd :: Install { opts } => update ( cfg, opts, true ) . await ,
588587 RustupSubcmd :: Uninstall { opts } => toolchain_remove ( cfg, opts) ,
589588 RustupSubcmd :: Show { verbose, subcmd } => handle_epipe ( match subcmd {
590589 None => show ( cfg, verbose) ,
@@ -615,7 +614,7 @@ pub async fn main(current_dir: PathBuf, process: &Process) -> Result<utils::Exit
615614 . await
616615 }
617616 RustupSubcmd :: Toolchain { subcmd } => match subcmd {
618- ToolchainSubcmd :: Install { opts } => update ( cfg, opts, false ) . await ,
617+ ToolchainSubcmd :: Install { opts } => update ( cfg, opts, true ) . await ,
619618 ToolchainSubcmd :: List { verbose, quiet } => {
620619 handle_epipe ( common:: list_toolchains ( cfg, verbose, quiet) )
621620 }
0 commit comments