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

unknown arg identification skips test. flags injected by go test #59

Closed integrii closed 4 years ago

integrii commented 4 years ago

When using show help on unexpected, test runs will break due to the injected test flags.

This PR fixes this situation:

$ go test
Unknown arguments supplied:  test.v=true test.timeout=10m0s
exit status 2