Skip to content

Commit 3ed4f14

Browse files
Merge pull request #448 from Workiva/fix-args-2-7-0
Work around invalid override error when args 2.7.0 is pulled in (Dart 3.3+ only issue)
2 parents af27fe5 + eade7ec commit 3ed4f14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/tools/compound_tool.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,15 @@ class CompoundArgParser implements ArgParser {
266266
bool negatable = true,
267267
void Function(bool value)? callback,
268268
bool hide = false,
269+
bool hideNegatedUsage = false,
269270
List<String> aliases = const []}) =>
270271
_compoundParser.addFlag(name,
271272
abbr: abbr,
272273
help: help,
273274
defaultsTo: defaultsTo,
274275
negatable: negatable,
276+
// TODO once lower bound of args is 2.7.0 (requires Dart SDK 3.3.0), which adds hideNegatedUsage, forward this arg
277+
// hideNegatedUsage: hideNegatedUsage,
275278
callback: callback,
276279
hide: hide,
277280
aliases: aliases);

0 commit comments

Comments
 (0)