SyncCommand constructor

SyncCommand()

Implementation

SyncCommand() {
  argParser
    ..addFlag(
      'force',
      negatable: false,
      help:
          'Rewrite every output file even if its contents already match. '
          'Use when an external process has touched lib/l10n/ or you want '
          'to refresh mtimes for a downstream watcher.',
    )
    ..addFlag(
      'dry-run',
      negatable: false,
      help:
          'Show which files would change without writing anything. '
          'Exits non-zero if any file is out of date — useful as a CI '
          'gate that the committed outputs match the source.',
    )
    ..addOption(
      'platform',
      help:
          'Sync only the named platform from dialect.yaml (e.g. '
          '`--platform backend`). Default: every configured platform.',
      valueHelp: 'name',
    );
}