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()
  ..addFlag('release',
      abbr: 'r', help: 'Build with release mode defaults for builders.')
  ..addSeparator('======== Other Options')
  ..addOption('webdev-args',
      help: 'Args to pass to the webdev serve process.\n'
          'Run "dart pub global run webdev serve -h -v" to see all available '
          'options.')
  ..addOption('build-args',
      help: 'Args to pass to the build runner process.\n'
          'Run "dart run build_runner build -h -v" to see all available '
          'options.');