From 1c08d00c41b4ca3952079566d764fb0d78c1445c Mon Sep 17 00:00:00 2001 From: scribu Date: Mon, 24 Jun 2013 16:40:27 +0300 Subject: [PATCH] rename '_sys' to 'cli' --- php/WP_CLI/Runner.php | 4 ++-- php/commands/{_sys.php => cli.php} | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) rename php/commands/{_sys.php => cli.php} (90%) diff --git a/php/WP_CLI/Runner.php b/php/WP_CLI/Runner.php index 17426a03..87fee001 100644 --- a/php/WP_CLI/Runner.php +++ b/php/WP_CLI/Runner.php @@ -231,11 +231,11 @@ class Runner { unset( $assoc_args['json'] ); } - // --{version|info} -> _sys {version|info} + // --{version|info} -> cli {version|info} if ( empty( $args ) ) { foreach ( array( 'version', 'info' ) as $key ) { if ( isset( $assoc_args[ $key ] ) ) { - $args = array( '_sys', $key ); + $args = array( 'cli', $key ); break; } } diff --git a/php/commands/_sys.php b/php/commands/cli.php similarity index 90% rename from php/commands/_sys.php rename to php/commands/cli.php index fefbc223..b371c231 100644 --- a/php/commands/_sys.php +++ b/php/commands/cli.php @@ -4,9 +4,11 @@ use \WP_CLI\Dispatcher, \WP_CLI\Utils; /** + * Get information about WP-CLI itself. + * * @when before_wp_load */ -class Sys_Command extends WP_CLI_Command { +class CLI_Command extends WP_CLI_Command { private function command_to_array( $command ) { $dump = array( @@ -55,5 +57,5 @@ class Sys_Command extends WP_CLI_Command { } } -WP_CLI::add_command( '_sys', 'Sys_Command' ); +WP_CLI::add_command( 'cli', 'CLI_Command' ); -- 2.11.0