RootCommand constructor

RootCommand()

Implementation

RootCommand() : super('aWords', 'aWards server application.') {
  // Add root options and flags
  argParser
    ..addFlag(
      'version',
      abbr: 'v',
      negatable: false,
      help: 'Print the current version.',
    )
    ..addFlag(
      'verbose',
      help: 'Noisy logging, including all shell commands executed.',
    );

  // Add sub commands
  addCommand(APICommand());
  addCommand(CLICommand());
}