Skip to content
Merged
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
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