We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993cfe3 commit f9a6c47Copy full SHA for f9a6c47
crates/cli/src/common_args.rs
@@ -51,6 +51,9 @@ pub fn clear_database() -> Arg {
51
.short('c')
52
.num_args(0..=1)
53
.value_parser(value_parser!(ClearMode))
54
+ // Because we have a default value for this flag, invocations can be ambiguous between
55
+ //passing a value to this flag, vs using the default value and passing an anonymous arg
56
+ // to the rest of the command. Adding `require_equals` resolves this ambiguity.
57
.require_equals(true)
58
.default_missing_value("always")
59
.help(
0 commit comments