-
Notifications
You must be signed in to change notification settings - Fork 27
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
can't set with_attachments to FALSE #40
Comments
@drzraf The way to negate a flag is to add
This is part of the default Synopsis handling of WP-CLI. |
@drzraf Can you confirm this is what you were intending to do with this PR? |
More or less. My main goal was to get it work in combination with |
I conclude that your current use case is solved and that I can close the current issue and corresponding pull-request. |
I'd need to test this again, but this hunk: https://github.com/wp-cli/export-command/pull/41/files#diff-62b6f83678ae9c3aaa96e7b97dce0433R163 |
Followup of #16
There was introduced
--with_attachments
. During the course of the PR, validation/casting disappeared and argument was handled that way:But on the other side, the code test for boolean value.
== we can't force
--with_attachment
to FALSE whatever the value passed would be (=0, =no, =false, ...
)Ref to get_flag_value
The text was updated successfully, but these errors were encountered: