runWith method

FutureOr<bool>? runWith([
  1. Map<String, dynamic>? args
])

Runs this task with the given args, or the parent args if none are provided.

Implementation

FutureOr<bool>? runWith([Map<String, dynamic>? args]) {
  final pArgs = parent.argResults!;
  _args = args ??
      Map<String, dynamic>.fromEntries(pArgs.options
          .map<MapEntry<String, dynamic>>((e) => MapEntry(e, pArgs[e])));
  return run();
}