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

fix: preserve failMessage from showHelpOnFail #2087

Closed
wants to merge 1 commit into from
Closed

fix: preserve failMessage from showHelpOnFail #2087

wants to merge 1 commit into from

Conversation

jly36963
Copy link
Contributor

@jly36963 jly36963 commented Dec 8, 2021

Addresses: #2085

Problem

usage.reset() was setting failMessage to null, and as a result the message wasn't shown on fail.

Solution

I removed the line in usage.reset() that set the failMessage to null.

Questions

Was there a reason for setting failMessage to null that I'm not aware of?

Todo

Assuming this is an okay fix, I'll add unit tests

@jly36963 jly36963 requested a review from bcoe December 8, 2021 02:36
@jly36963
Copy link
Contributor Author

jly36963 commented Dec 9, 2021

I realized this PR might be unnecessary, and I'm nervous of the side effects associated with my solution.

I proposed a solution to the issue mentioned here

@jly36963 jly36963 closed this Dec 13, 2021
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

1 participant