addFlags method

void addFlags(
  1. List<Flag> flags
)

Implementation

void addFlags(List<Flag> flags) {
  for (final flag in flags) {
    addFlag(
      flag.name,
      abbr: flag.abbr,
      help: flag.help,
      defaultsTo: flag.defaultsTo,
      negatable: flag.negatable,
      callback: flag.callback,
      hide: flag.hide,
      aliases: flag.aliases,
    );
  }
}