Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unstable updates #9092

Merged
merged 9 commits into from
Jan 21, 2021
9 changes: 6 additions & 3 deletions src/bin/cargo/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,12 @@ See 'cargo help <command>' for more information on a specific command.\n",
.arg(opt("locked", "Require Cargo.lock is up to date").global(true))
.arg(opt("offline", "Run without accessing the network").global(true))
.arg(
multi_opt("config", "KEY=VALUE", "Override a configuration value")
.global(true)
.hidden(true),
multi_opt(
"config",
"KEY=VALUE",
"Override a configuration value (unstable)",
)
.global(true),
)
.arg(
Arg::with_name("unstable-features")
Expand Down
1 change: 1 addition & 0 deletions src/bin/cargo/commands/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub fn cli() -> App {
)
.arg(opt("quiet", "No output printed to stdout").short("q"))
.arg(Arg::with_name("token"))
// --host is deprecated (use --registry instead)
.arg(
opt("host", "Host to set the token for")
.value_name("HOST")
Expand Down
5 changes: 5 additions & 0 deletions src/bin/cargo/commands/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pub fn cli() -> App {
"Display the tree for all packages in the workspace",
"Exclude specific workspace members",
)
// Deprecated, use --no-dedupe instead.
.arg(Arg::with_name("all").long("all").short("a").hidden(true))
// Deprecated, use --target=all instead.
.arg(
Arg::with_name("all-targets")
.long("all-targets")
Expand All @@ -30,6 +32,7 @@ pub fn cli() -> App {
"Filter dependencies matching the given target-triple (default host platform). \
Pass `all` to include all targets.",
)
// Deprecated, use -e=no-dev instead.
.arg(
Arg::with_name("no-dev-dependencies")
.long("no-dev-dependencies")
Expand All @@ -52,7 +55,9 @@ pub fn cli() -> App {
)
.short("i"),
)
// Deprecated, use --prefix=none instead.
.arg(Arg::with_name("no-indent").long("no-indent").hidden(true))
// Deprecated, use --prefix=depth instead.
.arg(
Arg::with_name("prefix-depth")
.long("prefix-depth")
Expand Down
4 changes: 4 additions & 0 deletions src/bin/cargo/commands/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,25 @@ pub fn cli() -> App {
.long("versioned-dirs")
.help("Always include version in subdir name"),
)
// Not supported.
.arg(
Arg::with_name("no-merge-sources")
.long("no-merge-sources")
.hidden(true),
)
// Not supported.
.arg(
Arg::with_name("relative-path")
.long("relative-path")
.hidden(true),
)
// Not supported.
.arg(
Arg::with_name("only-git-deps")
.long("only-git-deps")
.hidden(true),
)
// Not supported.
.arg(
Arg::with_name("disallow-duplicates")
.long("disallow-duplicates")
Expand Down
Loading