The most upvoted and second oldest open issue is #230 to add support for mandatory options which must be specified on the command line.
(This is in addition to the existing support for options with a required value when the option is specified.)
There have been a number of possible forms for the API proposed. Which one would you like to see implemented? You can vote 馃憤 for more than one, and can vote 馃憥 against any you dislike.
program.requiredOption('-f,--foo <value>', 'foo must be supplied');
program.optionEx('-f,--foo <value>', 'foo must be supplied', { required: true });
program.option('-f,--foo*
Thanks for the feedback. Implementing .requiredOption() in #1071.
Added .requiredOption() to v4.0.0 prerelease: #1067
Most helpful comment
.requiredOption
program.requiredOption('-f,--foo <value>', 'foo must be supplied');