From 782a6b71f2382ebb29614bfb8f441bd8e0f3ff5a Mon Sep 17 00:00:00 2001 From: scribu Date: Sun, 9 Jun 2013 16:44:51 +0300 Subject: [PATCH] attempt to load built-in command early --- php/WP_CLI/Runner.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/WP_CLI/Runner.php b/php/WP_CLI/Runner.php index a8474e4b..93613ad9 100644 --- a/php/WP_CLI/Runner.php +++ b/php/WP_CLI/Runner.php @@ -255,6 +255,9 @@ class Runner { $this->init_logger(); + if ( !empty( $this->arguments ) ) + Utils\load_command( $this->arguments[0] ); + if ( isset( $this->config['require'] ) ) { foreach ( $this->config['require'] as $path ) { require $path; -- 2.11.0