Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

document global parameters

  • Loading branch information...
commit 1f88e39224dacb9dbc978a6714870c0e08b2aec2 1 parent b4c5b33
@scribu scribu authored
View
8 src/php/wp-cli/commands/internals/help.php
@@ -40,16 +40,20 @@ public function __construct( $args ) {
}
private function general_help() {
- WP_CLI::line('Example usage:');
+ WP_CLI::line( 'Available commands:' );
foreach ( WP_CLI::$commands as $name => $command ) {
if ( 'help' == $name )
continue;
$this->single_command_help( $name, $command );
}
- WP_CLI::line(' wp --version');
WP_CLI::line();
WP_CLI::line( "See 'wp help <command>' for more information on a specific command." );
+ WP_CLI::line();
+ WP_CLI::line( 'Global parameters:' );
+ WP_CLI::line( ' --user=<id|login> set the current user' );
+ WP_CLI::line( ' --url=<url> set the current URL' );
+ WP_CLI::line( ' --version print wp-cli version' );
}
private function single_command_help( $name, $command ) {
View
2  src/php/wp-cli/wp-cli.php
@@ -89,7 +89,7 @@
if ( !$user_id || !wp_set_current_user( $user_id ) ) {
WP_CLI::error( sprintf( 'Could not get a user_id for this user: %s', var_export( $user, true ) ) );
}
- unset( $user);
+ unset( $user );
}
// Set filesystem method
Please sign in to comment.
Something went wrong with that request. Please try again.