addGlobalPubArgs function

void addGlobalPubArgs(
  1. ArgParser parser
)

Implementation

void addGlobalPubArgs(ArgParser parser) {
  addGlobalArgs(parser);
  parser.addFlag(
    'color',
    help:
        'Use colors in terminal output\n'
        'Defaults to color when connected to a terminal, and no-color otherwise.',
    defaultsTo: null,
  );
}