I'm using commander.js package for parsing command-line arguments: I'd like to make a flag non-optional, the API and tests in the git repo loosely mention making a flag required, but I usually need to be hit over the head with instructions.
Is it actually possible, and will the script throw if the requirement is not met?
program.requiredOption()
to flag an option as required now. – Euthanasia