Skip to content
Browse files

update db man page

  • Loading branch information...
1 parent 624510a commit 8dab261b415f928ac5e631d03e36f7dad646d87e @scribu scribu committed Apr 4, 2013
Showing with 10 additions and 21 deletions.
  1. +0 −4 man-src/db.txt
  2. +9 −9 man/db.1
  3. +1 −8 php/commands/db.php
View
4 man-src/db.txt
@@ -1,9 +1,5 @@
## OPTIONS
-* `--str`:
-
- Show the mysql command, instead of executing it.
-
* `--yes`:
Answer yes to the confirmation message.
View
18 man/db.1
@@ -7,31 +7,31 @@
\fBwp\-db\fR \- Perform basic database operations\.
.
.SH "SYNOPSIS"
-wp db create [\-\-str]
+wp db create
.
.P
-wp db drop [\-\-yes] [\-\-str]
+wp db drop [\-\-yes]
.
.P
-wp db reset [\-\-yes] [\-\-str]
+wp db reset [\-\-yes]
.
.P
-wp db optimize [\-\-str]
+wp db optimize
.
.P
-wp db repair [\-\-str]
+wp db repair
.
.P
-wp db connect [\-\-str]
+wp db connect
.
.P
-wp db query \fIsql\fR [\-\-str]
+wp db query \fIsql\fR
.
.P
-wp db export [\fIfile\fR] [\-\-str]
+wp db export [\fIfile\fR]
.
.P
-wp db import [\fIfile\fR] [\-\-str]
+wp db import [\fIfile\fR]
.
.SH "SUBCOMMANDS"
.
View
9 php/commands/db.php
@@ -9,8 +9,6 @@ class DB_Command extends WP_CLI_Command {
/**
* Create the database, as specified in wp-config.php
- *
- * @synopsis
*/
function create( $_, $assoc_args ) {
self::run_query( sprintf( 'CREATE DATABASE `%s`', DB_NAME ) );
@@ -47,8 +45,6 @@ function reset( $_, $assoc_args ) {
/**
* Optimize the database.
- *
- * @synopsis
*/
function optimize() {
self::run( \WP_CLI\Utils\create_cmd(
@@ -61,8 +57,6 @@ function optimize() {
/**
* Repair the database.
- *
- * @synopsis
*/
function repair() {
self::run( \WP_CLI\Utils\create_cmd(
@@ -76,8 +70,6 @@ function repair() {
* Open a mysql console using the WordPress credentials.
*
* @alias cli
- *
- * @synopsis
*/
function connect() {
self::run( \WP_CLI\Utils\create_cmd(
@@ -100,6 +92,7 @@ function query( $args ) {
* Exports the database using mysqldump.
*
* @alias dump
+ *
* @synopsis [<file>]
*/
function export( $args, $assoc_args ) {

0 comments on commit 8dab261

Please sign in to comment.
Something went wrong with that request. Please try again.