configureWithBase method

void configureWithBase(
  1. ArgParser parser
)

Internal: ensures --help is always added

Implementation

void configureWithBase(ArgParser parser) {
  parser.addFlag(
    'help',
    abbr: 'h',
    negatable: false,
    help: 'Show usage information',
  );

  configure(parser); // allow the command to add more options
}