RoutesCommand constructor

RoutesCommand()

Implementation

RoutesCommand() {
  argParser.addFlag(
    'json',
    help: 'Output in JSON format',
  );

  argParser.addOption(
    'output',
    help: 'Output file',
    defaultsTo: 'stdout',
  );

  argParser.addOption(
    'route-export-path',
    abbr: 'r',
    help: 'Path to export routes dir',
    defaultsTo: 'routes.dart',
  );

  argParser.addFlag(
    'create-route-export-file',
    abbr: 'c',
    help: 'Create route export file if it does not exist',
  );
}