Handle env vars with value 0 and 1 for bools (#241)

This commit is contained in:
Patrick Stevens
2024-09-04 21:06:22 +01:00
committed by GitHub
parent 8f9f933971
commit bdce82fb7a
4 changed files with 229 additions and 3 deletions

View File

@@ -135,3 +135,10 @@ type ChoicePositionals =
[<PositionalArgs>]
Args : Choice<string, string> list
}
[<ArgParser true>]
type ContainsBoolEnvVar =
{
[<ArgumentDefaultEnvironmentVariable "CONSUMEPLUGIN_THINGS">]
BoolVar : Choice<bool, bool>
}