@@ -43,9 +43,9 @@ ArgResults takeOptionArgs(ArgParser parser, ArgResults results) =>
4343/// ..addTool(TestTool(), argMapper: takeAllArgs)
4444/// };
4545ArgResults takeAllArgs (ArgParser parser, ArgResults results) => parser.parse ([
46- ...optionArgsOnly (results, allowedOptions: parser.options.keys),
47- ...restArgsWithSeparator (results),
48- ]);
46+ ...optionArgsOnly (results, allowedOptions: parser.options.keys),
47+ ...restArgsWithSeparator (results),
48+ ]);
4949
5050class CompoundTool extends DevTool with CompoundToolMixin {}
5151
@@ -81,8 +81,8 @@ mixin CompoundToolMixin on DevTool {
8181 for (var i = 0 ; i < _specs.length; i++ ) {
8282 if (! shouldRunTool (_specs[i].when , code)) continue ;
8383 final newCode = await _specs[i].tool.run (
84- contextForTool (context, _specs[i]),
85- );
84+ contextForTool (context, _specs[i]),
85+ );
8686 _log.fine ('Step ${i + 1 }/${_specs .length } done (code: $newCode )\n ' );
8787 if (code == 0 ) {
8888 code = newCode;
@@ -282,19 +282,18 @@ class CompoundArgParser implements ArgParser {
282282 bool hide = false ,
283283 bool hideNegatedUsage = false ,
284284 List <String > aliases = const [],
285- }) =>
286- _compoundParser.addFlag (
287- name,
288- abbr: abbr,
289- help: help,
290- defaultsTo: defaultsTo,
291- negatable: negatable,
292- // TODO once lower bound of args is 2.7.0 (requires Dart SDK 3.3.0), which adds hideNegatedUsage, forward this arg
293- // hideNegatedUsage: hideNegatedUsage,
294- callback: callback,
295- hide: hide,
296- aliases: aliases,
297- );
285+ }) => _compoundParser.addFlag (
286+ name,
287+ abbr: abbr,
288+ help: help,
289+ defaultsTo: defaultsTo,
290+ negatable: negatable,
291+ // TODO once lower bound of args is 2.7.0 (requires Dart SDK 3.3.0), which adds hideNegatedUsage, forward this arg
292+ // hideNegatedUsage: hideNegatedUsage,
293+ callback: callback,
294+ hide: hide,
295+ aliases: aliases,
296+ );
298297
299298 @override
300299 void addMultiOption (
@@ -309,20 +308,19 @@ class CompoundArgParser implements ArgParser {
309308 bool splitCommas = true ,
310309 bool hide = false ,
311310 List <String > aliases = const [],
312- }) =>
313- _compoundParser.addMultiOption (
314- name,
315- abbr: abbr,
316- help: help,
317- valueHelp: valueHelp,
318- allowed: allowed,
319- allowedHelp: allowedHelp,
320- defaultsTo: defaultsTo,
321- callback: callback,
322- splitCommas: splitCommas,
323- hide: hide,
324- aliases: aliases,
325- );
311+ }) => _compoundParser.addMultiOption (
312+ name,
313+ abbr: abbr,
314+ help: help,
315+ valueHelp: valueHelp,
316+ allowed: allowed,
317+ allowedHelp: allowedHelp,
318+ defaultsTo: defaultsTo,
319+ callback: callback,
320+ splitCommas: splitCommas,
321+ hide: hide,
322+ aliases: aliases,
323+ );
326324
327325 @override
328326 void addOption (
@@ -337,18 +335,17 @@ class CompoundArgParser implements ArgParser {
337335 bool mandatory = false ,
338336 bool hide = false ,
339337 List <String > aliases = const [],
340- }) =>
341- _compoundParser.addOption (
342- name,
343- abbr: abbr,
344- help: help,
345- valueHelp: valueHelp,
346- allowed: allowed,
347- allowedHelp: allowedHelp,
348- defaultsTo: defaultsTo,
349- callback: callback,
350- mandatory: mandatory,
351- hide: hide,
352- aliases: aliases,
353- );
338+ }) => _compoundParser.addOption (
339+ name,
340+ abbr: abbr,
341+ help: help,
342+ valueHelp: valueHelp,
343+ allowed: allowed,
344+ allowedHelp: allowedHelp,
345+ defaultsTo: defaultsTo,
346+ callback: callback,
347+ mandatory: mandatory,
348+ hide: hide,
349+ aliases: aliases,
350+ );
354351}
0 commit comments