Skip to content

Commit

Permalink
Merge pull request #206 from wp-cli/fix/missing-defaults-flag
Browse files Browse the repository at this point in the history
Add `--defaults` flag to remaining commands
  • Loading branch information
schlessera authored Aug 6, 2021
2 parents 6034921 + 29d0f21 commit 4a2c43b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/DB_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ class DB_Command extends WP_CLI_Command {
* [--dbpass=<value>]
* : Password to pass to mysql. Defaults to DB_PASSWORD.
*
* [--defaults]
* : Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
*
* ## EXAMPLES
*
* $ wp db create
Expand Down Expand Up @@ -103,6 +106,9 @@ public function create( $_, $assoc_args ) {
* [--yes]
* : Answer yes to the confirmation message.
*
* [--defaults]
* : Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
*
* ## EXAMPLES
*
* $ wp db drop --yes
Expand Down Expand Up @@ -134,6 +140,9 @@ public function drop( $_, $assoc_args ) {
* [--yes]
* : Answer yes to the confirmation message.
*
* [--defaults]
* : Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
*
* ## EXAMPLES
*
* $ wp db reset --yes
Expand Down Expand Up @@ -165,6 +174,9 @@ public function reset( $_, $assoc_args ) {
* [--yes]
* : Answer yes to the confirmation message.
*
* [--defaults]
* : Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
*
* ## EXAMPLES
*
* # Delete all tables that match the current site prefix.
Expand Down

0 comments on commit 4a2c43b

Please sign in to comment.