-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
Cannot name options/subcommands after commander public methods or JavaScript built-ins #19
Comments
good point haha. perhaps we should have them as |
To clarify the issue a bit more: Using an option named 'prompt' or 'password' means that:
|
yeah i know, there's no compromise really, we have to either place the option values somewhere else, or rename the methods |
My vote is to place the options in program.options - I think it makes it much clearer. |
Changed title of issue to better cover the scope of this problem. |
Closed, outdated. Feel free to reopen. |
I tried to create a parameter with the long name 'password' and it didn't work out well, since that conflicts with the method password(). Same would go for 'action', 'option', and so on. Perhaps the parsed options could come back in a separate object? Or be able to assign an alias to those option names?
Workaround currently is to use a different long name so that it doesn't conflict with those.
The text was updated successfully, but these errors were encountered: