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

Typed positional arguments #66

Closed pavelpatrin closed 2 years ago

pavelpatrin commented 4 years ago

The discussion started at https://github.com/integrii/flaggy/pull/63/.

Today I tried to implement methods on Parser as @integrii suggested.

But after I do that i think that implement typed positional arguments is also good idea.

Please see the proof of concept.

integrii commented 4 years ago

This is a pretty big change... I am going to review this but need some time.