commander.js : how to specify required cli argument
I guess this is not supported by commander.js https://github.com/visionmedia/commander.js/issues/44
But you can do something like this in your program -
if (!program.myoption)
throw new Error('--myoption required')