-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
The source code shows the long option --no-prompt as being the same as -y, but that doesn't actually work with the latest rustup:
$ curl -ssLO https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-init
$ chmod +x rustup-init
$ ./rustup-init --help
rustup-init 1.0.0 (17b6d21 2016-12-15)
The installer for rustup
USAGE:
rustup-init [FLAGS] [OPTIONS]
FLAGS:
-v, --verbose Enable verbose output
-y Disable confirmation prompt.
--no-modify-path Don't configure the PATH environment variable
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--default-host <default-host> Choose a default host triple
--default-toolchain <default-toolchain> Choose a default toolchain to install
I discovered this after attempting to install Rust non-interactively on Circle CI and it errored:
curl https://sh.rustup.rs -sSf | sh -s -- --no-prompt
info: downloading installer
error: Found argument '--no-prompt' which wasn't expected, or isn't valid in this context
USAGE:
rustup-init [FLAGS] [OPTIONS]
For more information try --help
rustup: command failed: /tmp/tmp.6EPokPxxSk/rustup-init --no-prompt
curl https://sh.rustup.rs -sSf | sh -s -- --no-prompt returned exit code 1
Action failed: curl https://sh.rustup.rs -sSf | sh -s -- --no-prompt
asonnino
Metadata
Metadata
Assignees
Labels
No labels