Skip to content
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

Fixes TypeError when a command has an option called --description #484

Merged
merged 1 commit into from
Jan 6, 2016

Conversation

ignacioiglesias
Copy link
Contributor

Using the description() method instead of the private property causes a TypeError when a command has an option called "description".

Since in the rest of the code the private property is used, I changed this line to use it too.

(this fix was proposed by @jadbox in #422 -- thx!)

`undefined`. Prevent `TypeError` by using `_description`.
SomeKittens added a commit that referenced this pull request Jan 6, 2016
Fixes TypeError when a command has an option called `--description`
@SomeKittens SomeKittens merged commit 1452f6f into tj:master Jan 6, 2016
@SomeKittens
Copy link
Collaborator

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants