There's no way I can find to find which args are unsupported. In this
program..allowUnknownOption();
// error on unknown commands
program.on('command:*', function () {
console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' '));
process.exit(1);
});
The function receives no arguments and command.args is empty in my usage. Can there be a command.unknownOptions added to store the ones added?
There's no way I can find to find which args are unsupported. In this
The function receives no arguments and
command.argsis empty in my usage. Can there be acommand.unknownOptionsadded to store the ones added?