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

cosmetic: simplify Parser #70

Closed marco-m closed 3 years ago

marco-m commented 3 years ago

Hello @integrii, thanks for flaggy!

or was there a reason for duplicating the code?

integrii commented 3 years ago

This was just an oversight. Maybe I had written some other logic there that was removed, but I forgot to simplify the return. This change looks good to me! Thanks!