Adds an option to this command container with an environment variable fallback.
public static TCommand Add<TCommand>(this TCommand command, string prototype, string? description, Action<string?> action, string envVar, char? envVarDelimiter = default(char? ), bool hidden = false)
where TCommand : CommandContainer
The command to add the option to.
The prototype of the option. E.g. "v|version".
The help description for this option.
The associated action.
The environment variable used as a fallback value.
Optional delimiter used to split multiple fallback values.
A boolean indicating if this option is hidden from help.