-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
this.name is not a function when a subcommand with option --name is used #1282
Comments
See #1226 for explanation and work-around. |
Covered by the linked issue. Added to the Triage item for future reference. Closing this as resolved. Feel free to open a new issue if it comes up again, with new information and renewed interest. |
Hello @shadowspawn I've got the same problem in project https://github.com/acacode/swagger-typescript-api If you have a free time please check the commander declaration in this file Also if you need steps to reproduce I have spec test for cli commands ( This bug happened after update |
Sorry, it was my bad, after update was needed to read more documentation about fresh version. For someone, who dig into this problem too - you should remove |
Commander in version 5.1.0 seems to have problems with option called name in subcommand
this typescript command snippet works:
but replace the --agentname with --name in options
and you will get a following exception:
Used node version
The text was updated successfully, but these errors were encountered: