We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index.js
node index.js
error: missing required argument 'some'
inspect
someothercommand
var program = require('commander'); program .command('inspect <some>') .description('Test bug') .action(function(some, options) {}); console.log(program);
The text was updated successfully, but these errors were encountered:
👍 same issue here
> require('commander').command('close').action(console.log).parse(['close']) { commands: [], options: [], _execs: [], _allowUnknownOption: false, _args: [], _name: 'close', parent: { commands: [ [Object], [Object], [Object], [Object], [Circular] ], options: [], _execs: [], _allowUnknownOption: false, _args: [], _name: undefined, Command: [Function: Command], Option: [Function: Option], _events: { close: [Object] } }, rawArgs: [ 'close' ], args: [] } > require('commander').command('inspect').action(console.log).parse(['inspect']) console.js:52 Console.prototype.log = function() { ^ RangeError: Maximum call stack size exceeded
It seems to be related to the EventEmitter system with reserved keywords. Maybe we can prefix commands on .on(command)
.on(command)
Sorry, something went wrong.
I'm a little late to the party, but I'm experiencing this error too. Does anybody have any workarounds aside from simply changing the command name?
Closing this as covered by #183 and #933
No branches or pull requests
How to reproduce
index.js
, install commander, runnode index.js
error: missing required argument 'some'
inspect
tosomeothercommand
The text was updated successfully, but these errors were encountered: