parse method

  1. @override
ArgResults parse(
  1. Iterable<String> args
)
override

Parses args and returns the result, converting an ArgParserException to a UsageException.

This is notionally a protected method. It may be overridden or called from subclasses, but it shouldn't be called externally.

Implementation

@override
ArgResults parse(Iterable<String> args) {
  final parsed = super.parse(args);
  _onParsed?.call(parsed);
  return parsed;
}