Skip to content

Commit d7b1880

Browse files
committed
fix(tree): Order --edges according to 'cargo help tree'
1 parent ee79a07 commit d7b1880

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/bin/cargo/commands/tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ pub fn cli() -> Command {
3232
.short('e')
3333
.value_delimiter(',')
3434
.value_parser([
35-
"features",
35+
"all",
3636
"normal",
3737
"build",
3838
"dev",
39-
"all",
39+
"features",
4040
"public",
4141
"no-normal",
4242
"no-build",

tests/testsuite/cargo_tree/deps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ fn unknown_edge_kind() {
17241724
p.cargo("tree -e unknown")
17251725
.with_stderr_data(str![[r#"
17261726
[ERROR] invalid value 'unknown' for '--edges <KINDS>'
1727-
[possible values: features, normal, build, dev, all, public, no-normal, no-build, no-dev, no-proc-macro]
1727+
[possible values: all, normal, build, dev, features, public, no-normal, no-build, no-dev, no-proc-macro]
17281728
17291729
For more information, try '--help'.
17301730

tests/testsuite/cargo_tree/help/stdout.term.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)