run method

  1. @override
Future<T?> run(
  1. Iterable<String> args
)
override

Parses args, applies the global flags and runs the command, as CommandRunner.run does. Errors are thrown, not printed; see runAndExit.

Implementation

@override
Future<T?> run(Iterable<String> args) async {
  if (_completing(args)) {
    await _printCompletions(args.skip(1).toList());
    return null;
  }
  return _scoped(args, runCommand);
}