akamensky / argparse

Argparse for golang. Just because `flag` sucks
MIT License
611 stars 62 forks source link

common way of composing shorthand arguments #52

Closed goofinator closed 4 years ago

goofinator commented 4 years ago

This is implementation of my thoughts on issue 45. There is only realization of arguments processing and tests for it (and some fix on tests of internal function about formatting). I didn't implement it as "on option" behavior yet, because i'm not sure what is the best way to do it. What do you think about it? I think it could be done as member of "Command struct" and variant of function "NewParser()"