-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
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?
Metadata
Metadata
Assignees
Labels
No labels