Skip to content

Commit fd4b266

Browse files
silbylpil
authored andcommitted
Make gleam deps tree -p and -i mutually exclusive
1 parent 4dde90b commit fd4b266

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
on the Erlang target.
99
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
1010

11-
- Analysis it now fault tolerant in the presence of errors in field definitions
11+
- Analysis is now fault tolerant in the presence of errors in field definitions
1212
of custom type variants.
1313
([Adi Salimgereyev](https://github.com/abs0luty))
1414

@@ -23,6 +23,11 @@
2323
going to run.
2424
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
2525

26+
- The `--invert` and `--package` options of `gleam deps tree` are now mutually
27+
exclusive; if both options are given the command will fail. Previously,
28+
`--invert` would be silently ignored if given together with `--package`.
29+
([Evan Silberman](https://github.com/silby))
30+
2631
### Language server
2732

2833
- The "inline variable" code action can now trigger when used over the let

compiler-cli/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ struct TreeOptions {
111111
short,
112112
long,
113113
ignore_case = true,
114+
conflicts_with = "invert",
114115
help = "Package to be used as the root of the tree"
115116
)]
116117
package: Option<String>,
@@ -119,6 +120,7 @@ struct TreeOptions {
119120
short,
120121
long,
121122
ignore_case = true,
123+
conflicts_with = "package",
122124
help = "Invert the tree direction and focus on the given package",
123125
value_name = "PACKAGE"
124126
)]

0 commit comments

Comments
 (0)