parser property

ArgParser parser
getter/setter pair

Command-line argument parser for Firebase App Distribution.

Defines all supported command-line options for the Firebase publisher with their descriptions, types, defaults, and validation rules. Used for parsing user input and generating help documentation.

Includes comprehensive options for:

  • File paths and binary types
  • Firebase app identification
  • Release notes and documentation
  • Tester and group management
  • Distribution configuration

Implementation

static ArgParser parser = ArgParser()
  ..addOption(
    'file-path',
    abbr: 'f',
    help: 'Path to the file to upload',
    mandatory: true,
  )
  ..addOption(
    'binary-type',
    abbr: 'b',
    help:
        'The binary type of the application to use. Valid values are apk, aab.',
    defaultsTo: 'apk',
  )
  ..addOption(
    'app-id',
    abbr: 'a',
    help: 'The app id of your Firebase app',
    mandatory: true,
  )
  ..addOption('release-notes', abbr: 'r', help: 'Release notes to include')
  ..addOption('release-notes-file', help: 'Path to file with release notes')
  ..addOption(
    'testers',
    abbr: 't',
    help: 'A comma-separated list of tester emails to distribute to',
  )
  ..addOption(
    'testers-file',
    abbr: 'T',
    help:
        'Path to file with a comma- or newline-separated list of tester emails to distribute to',
  )
  ..addOption(
    'groups',
    abbr: 'g',
    help: 'A comma-separated list of group aliases to distribute to',
  )
  ..addOption(
    'groups-file',
    abbr: 'G',
    help:
        'Path to file with a comma- or newline-separated list of group aliases to distribute to',
  )
  ..addOption(
    "token",
    help: 'Firebase\'s CI Token',
  );