From e91a480df19e806598cedaed5ff06df4f3dc974f Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 12 Jun 2013 18:41:55 +0300 Subject: [PATCH] mention that --require can be used more than once --- php/WP_CLI/Dispatcher/RootCommand.php | 4 ++-- php/config-spec.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/php/WP_CLI/Dispatcher/RootCommand.php b/php/WP_CLI/Dispatcher/RootCommand.php index ffebadb1..c9e9abdd 100644 --- a/php/WP_CLI/Dispatcher/RootCommand.php +++ b/php/WP_CLI/Dispatcher/RootCommand.php @@ -25,7 +25,7 @@ class RootCommand extends CompositeCommand { if ( '_sys' == $command->get_name() ) continue; - \WP_CLI::line( sprintf( " %s %s", + \WP_CLI::line( sprintf( ' %s %s', implode( ' ', get_path( $command ) ), implode( '|', array_keys( $command->get_subcommands() ) ) ) ); @@ -69,7 +69,7 @@ EOB foreach ( $lines as $line ) { list( $synopsis, $desc ) = $line; - \WP_CLI::line( ' ' . str_pad( $synopsis, $max_len ) . ' ' . $desc ); + \WP_CLI::line( sprintf( ' %s %s', str_pad( $synopsis, $max_len ), $desc ) ); } } diff --git a/php/config-spec.php b/php/config-spec.php index a711db49..61aaf46b 100644 --- a/php/config-spec.php +++ b/php/config-spec.php @@ -32,7 +32,7 @@ return array( 'require' => array( 'runtime' => '=', 'file' => '', - 'desc' => 'Load given PHP file before running the command', + 'desc' => 'Load PHP file before running the command (may be used more than once)', 'multiple' => true, 'default' => array(), ), -- 2.11.0