Skip to content

Commit 6f42679

Browse files
authored
fix(cli): restore --help support by enabling clap's help feature explicitly (#540)
- In clap v4, the feature system was restructured to be fully granular - With default-features = false, **no features** are enabled, including help - Previously in v3, help output was always included by default - Without explicitly enabling the help feature, running: ./linkerd-network-validator --help results in: error: unexpected argument found - This commit adds the help feature back to enable standard CLI help text Ref: https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#400---2022-09-28 Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
1 parent 8ce0108 commit 6f42679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tracing = "0.1"
1616
[dependencies.clap]
1717
version = "4"
1818
default-features = false
19-
features = ["derive", "env", "std"]
19+
features = ["derive", "env", "std", "help"]
2020

2121
[dependencies.tokio]
2222
version = "1"

0 commit comments

Comments
 (0)