-
Notifications
You must be signed in to change notification settings - Fork 94
Show error when parameter is missing in wp option patch #371
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
Conversation
| """ | ||
| Please provide value to update. | ||
| """ | ||
| And the return code should be 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test case for:
When I run `wp option patch update option_name foo 0`
To make sure we're handling falsy values correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not allow this to update, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not allow this to update, right?
Perhaps I'm misunderstanding but isn't 0 a valid value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I misunderstood.
I thought zero should be considered an empty value.
Then I saw other commands in the same option-pluck-patch.feature file.
So fixe it.
danielbachhuber
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates!
Fixes #353