JasperFx/oakton

Usage with optional arguments broken

chadly opened this issue · 4 comments

Trying out the library. Copy pasted the Getting Started example. The usage with optional arguments does not work.

When running:

dotnet run -- "Alex Smith"

it always shows the Invalid Usage until you specify the color as well:

dotnet run -- "Alex Smith" Green

Tried with v2.0.1, v2.0.0 - broken.

It works as expected in v1.5.0.

2.0.1 should have included a recent fix for this, i'll take a look using the getting started example

I'm on this one in the next day or two

I think the fix PR just got missed in the last release. Next Nuget will have the fix. I've verified the behavior in master.