Skip to content

Add --format option to fix --json option with WP-CLI#482

Merged
retlehs merged 1 commit into
roots:mainfrom
dsturm:fix-wpcli-about-command
Feb 21, 2026
Merged

Add --format option to fix --json option with WP-CLI#482
retlehs merged 1 commit into
roots:mainfrom
dsturm:fix-wpcli-about-command

Conversation

@dsturm

@dsturm dsturm commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

To fix the current issue, where WP-CLI overrides the --json option before executing the about command (#481), I came up with adding a third option --format to the command, which conditionally sets the json option to true.

@retlehs retlehs requested a review from QWp6t February 6, 2026 16:45

@QWp6t QWp6t left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a good workaround until one day when wp-cli/wp-cli#6113 maybe gets merged lol

@retlehs retlehs merged commit 0d40545 into roots:main Feb 21, 2026
2 checks passed
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.

3 participants