argParser property

  1. @override
ArgParser get argParser
override

Argument parser for the run command with configuration and operation options.

Available options:

  • --config or -c - Path to the configuration file (defaults to "distribution.yaml")
  • --operation or -o - Key of the operation to run (use "TaskKey.JobKey" for specific jobs)

Implementation

@override
ArgParser get argParser => ArgParser()
  ..addOption(
    'config',
    abbr: 'c',
    help: 'Path to the configuration file.',
    defaultsTo: 'distribution.yaml',
  )
  ..addOption(
    'operation',
    abbr: 'o',
    help:
        'Key of the operation to run, use OperationKey.JobKey to run spesifict job.',
    defaultsTo: '',
  );