Adds an option which expects a specified type and appends parsed values to the specified list, with an environment variable fallback.
public static TCommand Add<TCommand, T>(this TCommand command, string prototype, string? description, ICollection<T> list, string envVar, char? envVarDelimiter = default(char? ))
where TCommand : CommandContainer where T : ISpanParsable<T>
The command to add the option to.
The prototype of the option. E.g "v|version".
The help description for this option.
The associated list receiving option values.
The environment variable used as a fallback value.
Optional delimiter used to split multiple fallback values.