Skip to content

Commit 8a186b8

Browse files
committed
fix(tree): Order --edges according to 'cargo help tree'
1 parent a4641ab commit 8a186b8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/bin/cargo/commands/tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ pub fn cli() -> Command {
2626
.short('e')
2727
.value_delimiter(',')
2828
.value_parser([
29-
"features",
29+
"all",
3030
"normal",
3131
"build",
3232
"dev",
33-
"all",
33+
"features",
3434
"public",
3535
"no-normal",
3636
"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: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)