Adds an option or argument that appends values to a list with optional validation.
public static TCommand Add<TCommand, T>(this TCommand command, string prototype, string? description, ICollection<T> list, OptionValidator<T>? validate, string? envVar = null, char? envVarDelimiter = default(char? ))
where TCommand : CommandContainer where T : ISpanParsable<T>
The command to add the node to.
The prototype of the option or argument.
The help description.
The list that receives parsed values.
The optional validator.
The optional environment variable fallback (options only).
Optional delimiter used to split multiple fallback values.