buildParser method

  1. @override
ArgParser buildParser()
override

Creates the argument parser used by this command.

Implementation

@override
ArgParser buildParser() {
  return ArgParser()
    ..addFlag(
      'profile',
      abbr: 'p',
      negatable: false,
      help: 'Run in profile mode',
    )
    ..addFlag(
      'release',
      abbr: 'r',
      negatable: false,
      help: 'Run in release mode',
    )
    ..addOption(
      'platform',
      abbr: 't',
      defaultsTo: 'android',
      allowed: const [
        'android',
        'ios',
        'web',
      ],
      help: 'Target platform',
    );
}