Beispiel #1
0
 public CommandOptionLikeCommandDescriptor(string name, IReadOnlyList <char> shortName, CommandDescriptor command, CommandOptionFlags commandOptionFlags)
 {
     Name      = name ?? throw new ArgumentNullException(nameof(name));
     ShortName = shortName ?? throw new ArgumentNullException(nameof(shortName));
     Command   = command ?? throw new ArgumentNullException(nameof(command));
     Flags     = CommandOptionFlags.OptionLikeCommand | commandOptionFlags;
 }
Beispiel #2
0
 public CommandOverloadDescriptor(CommandOptionDescriptor option, string?value, CommandDescriptor command, IEqualityComparer <string>?comparer)
 {
     Option   = option ?? throw new ArgumentNullException(nameof(option));
     Value    = value;
     Command  = command ?? throw new ArgumentNullException(nameof(command));
     Comparer = comparer ?? StringComparer.OrdinalIgnoreCase;
 }