addArg method

void addArg(
  1. CmdArg info, {
  2. String? help,
  3. String? valueHelp,
  4. Iterable<String>? allowed,
  5. Map<String, String>? allowedHelp,
  6. String? defaultsTo,
  7. void callback(
    1. String?
    )?,
  8. bool hide = false,
})

Implementation

void addArg(CmdArg info,
        {String? help,
        String? valueHelp,
        Iterable<String>? allowed,
        Map<String, String>? allowedHelp,
        String? defaultsTo,
        void Function(String?)? callback,
        bool hide = false}) =>
    addOption(
      info.name,
      abbr: info.abbr,
      help: help,
      valueHelp: valueHelp,
      allowed: allowed,
      allowedHelp: allowedHelp,
      defaultsTo: defaultsTo,
      callback: callback,
      hide: hide,
    );