integrii / flaggy

Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.
The Unlicense
856 stars 30 forks source link

fix: fail on parse errors instead of silently ignoring them #72

Closed marco-m closed 2 years ago

marco-m commented 3 years ago

This is the same as PR #64, but adds a regression test and doesn't modify ParseArgs().

integrii commented 2 years ago

I got around to testing this and I think I like the behavior. Sorry this sat around for a year!