buildParser function

ArgParser buildParser()

Implementation

ArgParser buildParser() {
  return ArgParser()
    ..addOption(
      'site',
      abbr: 's',
      help: 'Directory containing site source files.',
    )
    ..addOption(
      'includes',
      abbr: 'i',
      help: 'Directory include (mustache partials) source files.',
    )
    ..addOption(
      'assets',
      abbr: 'a',
      help: 'Directory containing site asset (static) files.',
    )
    ..addOption(
      'templates',
      abbr: 't',
      help: 'Directory containing Handlebars template files.',
    )
    ..addOption(
      'output',
      abbr: 'o',
      help: 'Directory with processed output files.',
    )
    ..addFlag(
      'preview',
      abbr: 'p',
      negatable: false,
      help: 'Print this usage information.',
    )
    ..addFlag(
      'help',
      abbr: 'h',
      negatable: false,
      help: 'Print this usage information.',
    )
    ..addFlag(
      'verbose',
      abbr: 'v',
      negatable: false,
      help: 'Show additional command output.',
    )
    ..addFlag(
      'version',
      negatable: false,
      help: 'Print the tool version.',
    );
}