OSDN Git Service

core config: update man page
authorscribu <mail@scribu.net>
Thu, 30 May 2013 12:50:57 +0000 (15:50 +0300)
committerscribu <mail@scribu.net>
Thu, 30 May 2013 12:50:57 +0000 (15:50 +0300)
[ci skip]

man-src/core-config.txt
man/core-config.1

index 203927a..2f59209 100644 (file)
 
 ## EXAMPLES
 
-# Standard wp-config.php file:
-wp core config --dbname=testing --dbuser=wp --dbpass=securepswd
-
-# Enable WP_DEBUG and WP_DEBUG_LOG
-wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --extra-php <<PHP
-define( 'WP_DEBUG', true );
-define( 'WP_DEBUG_LOG', true );
-PHP
+       # Standard wp-config.php file
+       wp core config --dbname=testing --dbuser=wp --dbpass=securepswd
+
+       # Enable WP_DEBUG and WP_DEBUG_LOG
+       wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --extra-php <<PHP
+       define( 'WP_DEBUG', true );
+       define( 'WP_DEBUG_LOG', true );
+       PHP
index 47e893b..4a8d6e8 100644 (file)
@@ -7,7 +7,7 @@
 \fBwp\-core\-config\fR \- Set up a wp\-config\.php file\.
 .
 .SH "SYNOPSIS"
-wp core config \-\-dbname=\fIname\fR \-\-dbuser=\fIuser\fR [\-\-dbpass=\fIpassword\fR] [\-\-dbhost=\fIhost\fR] [\-\-dbprefix=\fIprefix\fR]
+wp core config \-\-dbname=\fIname\fR \-\-dbuser=\fIuser\fR [\-\-dbpass=\fIpassword\fR] [\-\-dbhost=\fIhost\fR] [\-\-dbprefix=\fIprefix\fR] [\-\-extra\-php]
 .
 .SH "OPTIONS"
 .
@@ -40,4 +40,25 @@ Set the database host\. Default: \'localhost\'
 .
 .IP
 Set the database table prefix\. Default: \'wp_\'
+.
+.TP
+\fB\-\-extra\-php\fR:
+.
+.IP
+If set, the command reads additional PHP code from STDIN\.
+.
+.SH "EXAMPLES"
+.
+.nf
+
+# Standard wp\-config\.php file
+wp core config \-\-dbname=testing \-\-dbuser=wp \-\-dbpass=securepswd
+
+# Enable WP_DEBUG and WP_DEBUG_LOG
+wp core config \-\-dbname=testing \-\-dbuser=wp \-\-dbpass=securepswd \-\-extra\-php <<PHP
+define( \'WP_DEBUG\', true );
+define( \'WP_DEBUG_LOG\', true );
+PHP
+.
+.fi