Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/DB_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,16 +664,13 @@ public function query( $args, $assoc_args ) {
* [--porcelain]
* : Output filename for the exported database.
*
* [--add-drop-table]
* : Include a `DROP TABLE IF EXISTS` statement before each `CREATE TABLE` statement.
*
* [--defaults]
* : Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
*
* ## EXAMPLES
*
* # Export database with drop query included
* $ wp db export --add-drop-table
* # Export database with `--skip-opt` and `--add-drop-table` mysqldump flags
* $ wp db export --skip-opt --add-drop-table
Comment on lines +672 to +673
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

The new example uses pass-through mysqldump boolean flags (--skip-opt, --add-drop-table) without =<value>, but the OPTIONS synopsis currently documents extra mysqldump args only as [--<field>=<value>]. Consider updating that synopsis (or adding a short note near it) to clarify that valueless flags are supported too, otherwise this example can look like it contradicts the documented option format.

Copilot uses AI. Check for mistakes.
* Success: Exported to 'wordpress_dbase-db72bb5.sql'.
*
* # Export certain tables
Expand Down