argParser property

  1. @override
ArgParser argParser
final

The argument parser for this tool, if needed.

When this tool is run from the command-line, this will be used to parse the arguments. The results will be available via the DevToolExecutionContext provided when calling run.

Implementation

@override
final ArgParser argParser = ArgParser()
  ..addOption('analyzer-args',
      help: 'Args to pass to the "dartanalyzer" or "dart analyze" process.\n'
          'Run "dartanalyzer -h -v" or `dart analyze -h -v" to see all available options.');