Skip to content

Commit cf920df

Browse files
committed
Unhide nightly-only flags.
I changed my mind on how these should work. I think it is useful to "advertise" the existence of these options on stable. The error message if you try to use it should help guide on what to do.
1 parent 8e075c9 commit cf920df

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/bin/cargo/cli.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,12 @@ See 'cargo help <command>' for more information on a specific command.\n",
327327
.arg(opt("locked", "Require Cargo.lock is up to date").global(true))
328328
.arg(opt("offline", "Run without accessing the network").global(true))
329329
.arg(
330-
multi_opt("config", "KEY=VALUE", "Override a configuration value")
331-
.global(true)
332-
.hidden(true),
330+
multi_opt(
331+
"config",
332+
"KEY=VALUE",
333+
"Override a configuration value (unstable)",
334+
)
335+
.global(true),
333336
)
334337
.arg(
335338
Arg::with_name("unstable-features")

src/cargo/util/command_prelude.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub trait AppExt: Sized {
169169
}
170170

171171
fn arg_unit_graph(self) -> Self {
172-
self._arg(opt("unit-graph", "Output build graph in JSON (unstable)").hidden(true))
172+
self._arg(opt("unit-graph", "Output build graph in JSON (unstable)"))
173173
}
174174

175175
fn arg_new_opts(self) -> Self {
@@ -214,13 +214,10 @@ pub trait AppExt: Sized {
214214
}
215215

216216
fn arg_ignore_rust_version(self) -> Self {
217-
self._arg(
218-
opt(
219-
"ignore-rust-version",
220-
"Ignore `rust-version` specification in packages",
221-
)
222-
.hidden(true), // nightly only (`rust-version` feature)
223-
)
217+
self._arg(opt(
218+
"ignore-rust-version",
219+
"Ignore `rust-version` specification in packages (unstable)",
220+
))
224221
}
225222
}
226223

0 commit comments

Comments
 (0)