From 50e04264d31caa741f935861dee5532ecd094151 Mon Sep 17 00:00:00 2001 From: Janw Oostendorp Date: Fri, 3 Apr 2026 14:40:17 +0200 Subject: [PATCH 1/2] Specify scope options in same format as other arguments that have a list. --- src/DB_Command.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/DB_Command.php b/src/DB_Command.php index e0d7ad47..f63c66e3 100644 --- a/src/DB_Command.php +++ b/src/DB_Command.php @@ -957,7 +957,16 @@ public function import( $args, $assoc_args ) { * : List tables based on wildcard search, e.g. 'wp_*_options' or 'wp_post?'. * * [--scope=] - * : Can be all, global, ms_global, blog, or old tables. Defaults to all. + * : List tables based on the scope. + * --- + * default: all + * options: + * - all - returns 'all' and 'global' tables. No old tables are returned. + * - blog - returns the blog-level tables for the queried blog. + * - global - returns the global tables for the installation, returning multisite tables only on multisite. + * - ms_global - returns the multisite global tables, regardless if current installation is multisite. + * - old - returns tables which are deprecated. + * --- * * [--network] * : List all the tables in a multisite install. From dea348de2dcfe8240ed098cdae69d09985be096e Mon Sep 17 00:00:00 2001 From: Janw Oostendorp Date: Tue, 7 Apr 2026 10:12:25 +0200 Subject: [PATCH 2/2] Changed Documentation format Previous version broke formatting. --- src/DB_Command.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/DB_Command.php b/src/DB_Command.php index f63c66e3..78cee981 100644 --- a/src/DB_Command.php +++ b/src/DB_Command.php @@ -958,14 +958,20 @@ public function import( $args, $assoc_args ) { * * [--scope=] * : List tables based on the scope. + * + * - all: returns 'all' and 'global' tables. No old tables are returned. + * - blog: returns the blog-level tables for the queried blog. + * - global: returns the global tables for the installation, returning multisite tables only on multisite. + * - ms_global: returns the multisite global tables, regardless if current installation is multisite. + * - old: returns tables which are deprecated. * --- * default: all * options: - * - all - returns 'all' and 'global' tables. No old tables are returned. - * - blog - returns the blog-level tables for the queried blog. - * - global - returns the global tables for the installation, returning multisite tables only on multisite. - * - ms_global - returns the multisite global tables, regardless if current installation is multisite. - * - old - returns tables which are deprecated. + * - all + * - blog + * - global + * - ms_global + * - old * --- * * [--network]