Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies.
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.
It's not obvious you can disable the
--version
output from flaggy by doingflaggy.DefaultParser.ShowVersionWithVersionFlag = false
. It would be easier to have a top level function that setsShowVersionWithVersionFlag
tofalse
onDefaultParser
.