Skip to content

Fix incorrect --output argument in generate image example#19

Merged
swissspidy merged 1 commit into
wp-cli:mainfrom
ernilambar:18-doc-issue
Jun 29, 2026
Merged

Fix incorrect --output argument in generate image example#19
swissspidy merged 1 commit into
wp-cli:mainfrom
ernilambar:18-doc-issue

Conversation

@ernilambar

Copy link
Copy Markdown
Member

Closes #18

The inline example used --output which is not a registered argument. The correct argument is --destination-file.

- $ wp ai generate image "A minimalist WordPress logo" --output=wp-logo.png
+ $ wp ai generate image "A minimalist WordPress logo" --destination-file=wp-logo.png

@github-actions

Copy link
Copy Markdown
Contributor

Hello! 👋

Thanks for opening this pull request! Please check out our contributing guidelines. We appreciate you taking the initiative to contribute to this project.

Contributing isn't limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

Here are some useful Composer commands to get you started:

  • composer install: Install dependencies.
  • composer test: Run the full test suite.
  • composer phpcs: Check for code style violations.
  • composer phpcbf: Automatically fix code style violations.
  • composer phpunit: Run unit tests.
  • composer behat: Run behavior-driven tests.

To run a single Behat test, you can use the following command:

# Run all tests in a single file
composer behat features/some-feature.feature

# Run only a specific scenario (where 123 is the line number of the "Scenario:" title)
composer behat features/some-feature.feature:123

You can find a list of all available Behat steps in our handbook.

@github-actions github-actions Bot added command:ai-generate Related to 'ai generate' command documentation Improvements or additions to documentation labels Jun 29, 2026
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy added this to the 1.0.1 milestone Jun 29, 2026
@swissspidy swissspidy merged commit b25e68e into wp-cli:main Jun 29, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:ai-generate Related to 'ai generate' command documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect --output argument in example

2 participants