Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Options:
Set log level to 'DEBUG' if 'RUSTUP_LOG' is unset
-q, --quiet
Disable progress output, set log level to 'WARN' if 'RUSTUP_LOG' is unset
-y
-y, --yes
Disable confirmation prompt
--default-host <DEFAULT_HOST>
Choose a default host tuple
Expand Down Expand Up @@ -134,6 +134,11 @@ main() {
--quiet)
RUSTUP_QUIET=yes
;;
--yes)
# user wants to skip the prompt --
# we don't need /dev/tty
need_tty=no
;;
*)
OPTIND=1
if [ "${arg%%--*}" = "" ]; then
Expand Down
2 changes: 1 addition & 1 deletion src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ enum SelfSubcmd {
/// Uninstall rustup
Uninstall {
/// Disable confirmation prompt
#[arg(short = 'y')]
#[arg(short = 'y', long = "yes")]
no_prompt: bool,

/// Do not clean up the `PATH` environment variable
Expand Down
2 changes: 1 addition & 1 deletion src/cli/setup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct RustupInit {
quiet: bool,

/// Disable confirmation prompt
#[arg(short = 'y')]
#[arg(short = 'y', long = "yes")]
no_prompt: bool,

/// Choose a default host tuple
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading