akamensky / argparse

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

[vote] Should sub-commands be required? #6

Closed akamensky closed 6 years ago

akamensky commented 6 years ago

Right now if command has a sub-command (e.g. $ progname command <sub-command> or $ progname <command>) that sub-command is automatically required and not providing any will generate error response on parser.Parse(). This vote is consideration whether sub-commands must be always required, or they do not have to be required (do not generate err on parser.Parse() and instead delegate sub-command require/not-required decision to the developer who uses package.

Thumbs up - required, thumbs down - not required.