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 flag handing generic so that many flag types can be added easily #7

Closed integrii closed 6 years ago

integrii commented 6 years ago

refactor code so that more flag types can be easily added. Fold all flags into a single Flag struct and use type switches where specific flag type operations are performed.