Skip to content

Commit

Permalink
Merge branch 'master' into refactor/clap-derive
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l authored May 12, 2024
2 parents 8fe3c00 + 8244acc commit f175f18
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ Options:
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
--profile <PROFILE>
[default: default] [possible values: minimal, default, complete]
-c, --components <COMPONENTS>...
-c, --component <COMPONENT>...
Component name to also install
-t, --targets <TARGETS>...
-t, --target <TARGET>...
Target name to also install
--no-update-default-toolchain
Don't update any existing default toolchain after install
Expand Down
12 changes: 6 additions & 6 deletions src/cli/setup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ struct RustupInit {

/// Component name to also install
#[arg(short, long, value_delimiter = ',', num_args = 1..)]
components: Vec<String>,
component: Vec<String>,

/// Target name to also install
#[arg(short, long, value_delimiter = ',', num_args = 1..)]
targets: Vec<String>,
target: Vec<String>,

/// Don't update any existing default toolchain after install
#[arg(long)]
Expand Down Expand Up @@ -85,8 +85,8 @@ pub fn main() -> Result<utils::ExitCode> {
default_host,
default_toolchain,
profile,
components,
targets,
component,
target,
no_update_default_toolchain,
no_modify_path,
self_replace,
Expand Down Expand Up @@ -119,8 +119,8 @@ pub fn main() -> Result<utils::ExitCode> {
profile,
no_modify_path,
no_update_toolchain: no_update_default_toolchain,
components: &components.iter().map(|s| &**s).collect::<Vec<_>>(),
targets: &targets.iter().map(|s| &**s).collect::<Vec<_>>(),
components: &component.iter().map(|s| &**s).collect::<Vec<_>>(),
targets: &target.iter().map(|s| &**s).collect::<Vec<_>>(),
};

self_update::install(no_prompt, verbose, quiet, opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Options:
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
--profile <PROFILE>
[default: default] [possible values: minimal, default, complete]
-c, --components <COMPONENTS>...
-c, --component <COMPONENT>...
Component name to also install
-t, --targets <TARGETS>...
-t, --target <TARGET>...
Target name to also install
--no-update-default-toolchain
Don't update any existing default toolchain after install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Options:
Choose a default toolchain to install. Use 'none' to not install any toolchains at all
--profile <PROFILE>
[default: default] [possible values: minimal, default, complete]
-c, --components <COMPONENTS>...
-c, --component <COMPONENT>...
Component name to also install
-t, --targets <TARGETS>...
-t, --target <TARGET>...
Target name to also install
--no-update-default-toolchain
Don't update any existing default toolchain after install
Expand Down

0 comments on commit f175f18

Please sign in to comment.