From 855a989d28e13ee1644d08af2a4075f8c09ad5aa Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Wed, 20 Nov 2013 14:19:27 -0800 Subject: [PATCH] Restore the use of `--prompt` as a runtime argument. The argument is unique of it's kind, and there isn't a great way of doing this otherwise. --- php/WP_CLI/Runner.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php/WP_CLI/Runner.php b/php/WP_CLI/Runner.php index e09a54a5..4893ded7 100644 --- a/php/WP_CLI/Runner.php +++ b/php/WP_CLI/Runner.php @@ -394,6 +394,10 @@ class Runner { $configurator->merge_config( $runtime_config ); $this->config = $configurator->to_array(); + // --prompt can't be set in file, but is still a valid runtime arg + if ( ! empty( $runtime_config['prompt'] ) ) + $this->config['prompt'] = true; + if ( !isset( $this->config['path'] ) ) { $this->config['path'] = dirname( Utils\find_file_upward( 'wp-load.php' ) ); } -- 2.11.0