addOptions method

void addOptions(
  1. List<Option> options
)

Implementation

void addOptions(List<Option> options) {
  for (final option in options) {
    addOption(
      option.name,
      abbr: option.abbr,
      help: option.help,
      valueHelp: option.valueHelp,
      allowed: option.allowed,
      allowedHelp: option.allowedHelp,
      defaultsTo: option.defaultsTo,
      callback: option.callback,
      mandatory: option.mandatory,
      hide: option.hide,
      aliases: option.aliases,
    );
  }
}