argument 'once' (and probably others) cause naming collision #404
Closed
Description
Just want to give some feedback here to help others avoid a little pitfall: you cannot use --once
as an argument, probably because the name collides with some internals of commander. Interestingly, the once
argument will revert the expected behavior: myprog --once
will set commander.once=undefined
, so a falsy value, while running myprog
will set it to a function as expected. Maybe you guys can fix the documentation to mention these reserved arguments, so others can save their time. Thanks!
Metadata
Assignees
Labels
No labels