fclp / fluent-command-line-parser

A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface
Other
530 stars 86 forks source link

Support 0 and 1 for bool false and true #56

Closed TheCycoONE closed 8 years ago

TheCycoONE commented 8 years ago

There are currently a few ways of specifying boolean arguments, but I would one more. I think it is reasonable to be able to pass 0 for false and 1 for true. Powershell commands normally support 0 or 1 anywhere they would accept $false / $true (which are currently supported).

siywilliams commented 8 years ago

Yes you're quite right, it currently supports true/false on/off and +/- but not 1/0

It's a simple mod so I'll update it.