Skip to content

Commit e71a84f

Browse files
Fix argument format for --format=<format>. It's not a flag
1 parent a1849d9 commit e71a84f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ Defaults to all tables registered to the $wpdb database handler.
672672
Displays the database name and size.
673673

674674
~~~
675-
wp db size [--size_format=<format>] [--tables] [--human-readable] [--format] [--scope=<scope>] [--network] [--all-tables-with-prefix] [--all-tables]
675+
wp db size [--size_format=<format>] [--tables] [--human-readable] [--format=<format>] [--scope=<scope>] [--network] [--all-tables-with-prefix] [--all-tables]
676676
~~~
677677

678678
Display the database name and size for `DB_NAME` specified in wp-config.php.
@@ -723,14 +723,15 @@ Available size formats include:
723723
[--human-readable]
724724
Display database sizes in human readable formats.
725725

726-
[--format]
727-
table, csv, json
726+
[--format=<format>]
727+
Render output in a particular format.
728728
---
729729
default: table
730730
options:
731731
- table
732732
- csv
733733
- json
734+
- yaml
734735
---
735736

736737
[--scope=<scope>]

src/DB_Command.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,14 +704,15 @@ public function tables( $args, $assoc_args ) {
704704
* [--human-readable]
705705
* : Display database sizes in human readable formats.
706706
*
707-
* [--format]
708-
* : table, csv, json
707+
* [--format=<format>]
708+
* : Render output in a particular format.
709709
* ---
710710
* default: table
711711
* options:
712712
* - table
713713
* - csv
714714
* - json
715+
* - yaml
715716
* ---
716717
*
717718
* [--scope=<scope>]

0 commit comments

Comments
 (0)