addPackageSelectionOptions function

void addPackageSelectionOptions(
  1. ArgParser parser
)

Adds the options that choose and schedule workspace packages.

Implementation

void addPackageSelectionOptions(ArgParser parser) {
  parser
    ..addMultiOption(
      'filter',
      valueHelp: 'package',
      help:
          'Only run in workspace packages with this name or a path matching '
          'this glob. Repeat to select more.',
    )
    ..addOption(
      'concurrency',
      abbr: 'j',
      valueHelp: 'count',
      help: 'Run in at most this many packages at once. Default: all at once.',
    )
    ..addFlag(
      'fail-fast',
      negatable: false,
      help: 'Stop the remaining packages when one fails.',
    )
    ..addFlag(
      'dependency-order',
      negatable: false,
      help:
          'Start a package only after the workspace packages it depends on '
          'have finished.',
    );
}