akamensky / argparse

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

Add a flag to mark if command happened. #33

Closed zuoxiaofeng closed 5 years ago

zuoxiaofeng commented 5 years ago

when sub command args parse failed, it is useful to check which sub command happened and print it's usage message, but not always print top level command usage.

akamensky commented 5 years ago

Looks good. This is one issue needing a fix for awhile.

Please squash all commits in this PR to one then it can be merged.

Thanks!