Skip to content

Commit 048713d

Browse files
authored
Merge pull request #1763 from kinnison/kinnison/doc-self-update
Document `--no-self-update` properly
2 parents 126913d + 19a3e80 commit 048713d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ info: checking for self-updates
176176
info: downloading self-updates
177177
```
178178

179+
**Note**: `rustup` will automatically update itself at the end of any toolchain
180+
installation as well. You can prevent this automatic behaviour by passing the
181+
`--no-self-update` argument when running `rustup update` or `rustup toolchain install`.
182+
179183
## Working with nightly Rust
180184

181185
Rustup gives you easy access to the nightly compiler and its

src/cli/rustup_mode.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,9 @@ pub fn cli() -> App<'static, 'static> {
140140
)
141141
.arg(
142142
Arg::with_name("no-self-update")
143-
.help("Don't perform self update when running the `rustup` command")
143+
.help("Don't perform self-update when running the `rustup install` command")
144144
.long("no-self-update")
145145
.takes_value(false)
146-
.hidden(true),
147146
)
148147
.arg(
149148
Arg::with_name("force")
@@ -175,10 +174,9 @@ pub fn cli() -> App<'static, 'static> {
175174
)
176175
.arg(
177176
Arg::with_name("no-self-update")
178-
.help("Don't perform self update when running the `rustup` command")
177+
.help("Don't perform self update when running the `rustup update` command")
179178
.long("no-self-update")
180179
.takes_value(false)
181-
.hidden(true),
182180
)
183181
.arg(
184182
Arg::with_name("force")
@@ -217,10 +215,9 @@ pub fn cli() -> App<'static, 'static> {
217215
)
218216
.arg(
219217
Arg::with_name("no-self-update")
220-
.help("Don't perform self update when running the `rustup` command")
218+
.help("Don't perform self update when running the `rustup toolchain install` command")
221219
.long("no-self-update")
222220
.takes_value(false)
223-
.hidden(true),
224221
),
225222
)
226223
.subcommand(

0 commit comments

Comments
 (0)