Skip to content

Commit 73b98ed

Browse files
committed
Add some comments why some options are hidden.
1 parent cf920df commit 73b98ed

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/bin/cargo/commands/login.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub fn cli() -> App {
1010
)
1111
.arg(opt("quiet", "No output printed to stdout").short("q"))
1212
.arg(Arg::with_name("token"))
13+
// --host is deprecated (use --registry instead)
1314
.arg(
1415
opt("host", "Host to set the token for")
1516
.value_name("HOST")

src/bin/cargo/commands/tree.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ pub fn cli() -> App {
1919
"Display the tree for all packages in the workspace",
2020
"Exclude specific workspace members",
2121
)
22+
// Deprecated, use --no-dedupe instead.
2223
.arg(Arg::with_name("all").long("all").short("a").hidden(true))
24+
// Deprecated, use --target=all instead.
2325
.arg(
2426
Arg::with_name("all-targets")
2527
.long("all-targets")
@@ -30,6 +32,7 @@ pub fn cli() -> App {
3032
"Filter dependencies matching the given target-triple (default host platform). \
3133
Pass `all` to include all targets.",
3234
)
35+
// Deprecated, use -e=no-dev instead.
3336
.arg(
3437
Arg::with_name("no-dev-dependencies")
3538
.long("no-dev-dependencies")
@@ -52,7 +55,9 @@ pub fn cli() -> App {
5255
)
5356
.short("i"),
5457
)
58+
// Deprecated, use --prefix=none instead.
5559
.arg(Arg::with_name("no-indent").long("no-indent").hidden(true))
60+
// Deprecated, use --prefix=depth instead.
5661
.arg(
5762
Arg::with_name("prefix-depth")
5863
.long("prefix-depth")

src/bin/cargo/commands/vendor.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,25 @@ pub fn cli() -> App {
3232
.long("versioned-dirs")
3333
.help("Always include version in subdir name"),
3434
)
35+
// Not supported.
3536
.arg(
3637
Arg::with_name("no-merge-sources")
3738
.long("no-merge-sources")
3839
.hidden(true),
3940
)
41+
// Not supported.
4042
.arg(
4143
Arg::with_name("relative-path")
4244
.long("relative-path")
4345
.hidden(true),
4446
)
47+
// Not supported.
4548
.arg(
4649
Arg::with_name("only-git-deps")
4750
.long("only-git-deps")
4851
.hidden(true),
4952
)
53+
// Not supported.
5054
.arg(
5155
Arg::with_name("disallow-duplicates")
5256
.long("disallow-duplicates")

0 commit comments

Comments
 (0)