cacjs / cac

Simple yet powerful framework for building command-line apps.
MIT License
2.65k stars 104 forks source link

feat: throw error on unused args #135

Open sapphi-red opened 2 years ago

sapphi-red commented 2 years ago

When the number of args passed is more than expected, it is likely to be mistaken the command syntax. I think it would be good to have an error in this situation.

If I should implement something like allowUnknownOptions, I would do it.