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
858 stars 30 forks source link

Make it easier to disable `--version` output #40

Closed integrii closed 5 years ago

integrii commented 5 years ago

It's not obvious you can disable the --version output from flaggy by doing flaggy.DefaultParser.ShowVersionWithVersionFlag = false. It would be easier to have a top level function that sets ShowVersionWithVersionFlag to false on DefaultParser.