dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Allow for unknown options to be passed into commands #143

Closed drewbrokke closed 8 years ago

drewbrokke commented 8 years ago

This is actually the one thing that's preventing me from using this library in a project.

Commander.js supports calling allowUnknownOption on a command object: https://github.com/tj/commander.js/blob/master/index.js#L425-L428.

I don't always know which options a particular command will end up using since a lot of the actual options needed will be dynamically generated based on the first argument passed to the command. I'm using minimist right now for that very reason, but Vorpal offers so much cool stuff!