OSDN Git Service

core install-network: flags don't need a value; update man page
authorscribu <mail@scribu.net>
Thu, 20 Jun 2013 09:44:28 +0000 (12:44 +0300)
committerscribu <mail@scribu.net>
Sat, 22 Jun 2013 18:12:36 +0000 (21:12 +0300)
see #532

man-src/core-install-network.txt
man/core-install-network.1
php/commands/core.php

index 26e2c2a..24494f1 100644 (file)
@@ -8,3 +8,7 @@
 
        Base path after the domain name that each site url will start with.
 Default: '/'
+
+* `--subdomains`:
+
+       If passed, the network will use subdomains, instead of subdirectories.
index f7f4f84..60fdbfc 100644 (file)
@@ -7,7 +7,7 @@
 \fBwp\-core\-install\-network\fR \- Transform a single\-site install into a multi\-site install\.
 .
 .SH "SYNOPSIS"
-wp core install\-network \-\-title=\fInetwork\-title\fR [\-\-base=\fIurl\-path\fR]
+wp core install\-network \-\-title=\fInetwork\-title\fR [\-\-base=\fIurl\-path\fR] [\-\-subdomains]
 .
 .SH "OPTIONS"
 .
@@ -22,4 +22,10 @@ The title of the new network\.
 .
 .IP
 Base path after the domain name that each site url will start with\. Default: \'/\'
+.
+.TP
+\fB\-\-subdomains\fR:
+.
+.IP
+If passed, the network will use subdomains, instead of subdirectories\.
 
index 34d92aa..6cef0b0 100644 (file)
@@ -156,7 +156,7 @@ class Core_Command extends WP_CLI_Command {
         * Transform a single-site install into a multi-site install.
         *
         * @subcommand install-network
-        * @synopsis --title=<network-title> [--base=<url-path>] [--subdomains=<TRUE>]
+        * @synopsis --title=<network-title> [--base=<url-path>] [--subdomains]
         */
        public function install_network( $args, $assoc_args ) {
                if ( is_multisite() )