VariableLocalizationUpsertSubcommand constructor

VariableLocalizationUpsertSubcommand()

Implementation

VariableLocalizationUpsertSubcommand() {
  argParser
    ..addOption(
      'variable-id',
      help: 'Variable ID. [Required]',
      mandatory: true,
    )
    ..addOption(
      'locale-id',
      help: 'Locale ID (e.g. en, nl, es). [Required]',
      mandatory: true,
    )
    ..addOption(
      'field',
      help: 'Field name (e.g. other, one, zero, few, many, male, female). [Required]',
      mandatory: true,
    )
    ..addOption(
      'text',
      abbr: 't',
      help: 'Localized text string. [Required]',
      mandatory: true,
    )
    ..addOption(
      'id',
      help: 'Variable localization ID [Optional, leave empty to create new].',
    )
    ..addOption(
      'variant',
      help: 'Optional variant name [Optional].',
    )
    ..addFlag(
      'auto-translate',
      help: 'Mark for auto-translation to other locales [Optional].',
    );
}