denisdefreyne / cri

A tool for building commandline applications
MIT License
120 stars 19 forks source link

Display help for sub-commands that require an argument? #76

Closed rchady closed 6 years ago

rchady commented 6 years ago

Is it possible to make sub-commands accept -h even if the wrong number of arguments to it are provided? Right now I just get the wrong number of arguments, but -h/--help should be there to help them find out what arguments are needed I would think?

denisdefreyne commented 6 years ago

I think -h should work even if the wrong number of arguments is given — maybe options need to be evaluated before validating arguments.

denisdefreyne commented 6 years ago

This is fixed in #78.

denisdefreyne commented 6 years ago

… and is now released in Cri 2.15.1!