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

Fix trailing arguments being considered errant positionals #80

Closed integrii closed 2 years ago

integrii commented 2 years ago

Fixes #79

If you would like to use a variable number of arguments at the end of your program without the user specifying -- before the list, you can do this by setting flaggy.ShowHelpOnUnexpectedDisable() and then parsing the []string at flaggy.TrailingArguments.