newOption function
Creates a new Option.
Since Option doesn't have a public constructor, this lets ArgParser
get to it. This function isn't exported to the public API of the package.
Implementation
Option newOption(String name, String? abbr, String? help, String? valueHelp, Iterable<String>? allowed,
Map<String, String>? allowedHelp, defaultsTo, Function? callback, OptionType type,
{bool? negatable, bool? splitCommas, bool mandatory = false, bool hide = false, List<String> aliases = const []}) {
return Option._(name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type,
negatable: negatable, splitCommas: splitCommas, mandatory: mandatory, hide: hide, aliases: aliases);
}