diff --git a/src/Shell/ConfigReadShell.php b/src/Shell/ConfigReadShell.php index 53200c0..277428b 100644 --- a/src/Shell/ConfigReadShell.php +++ b/src/Shell/ConfigReadShell.php @@ -326,6 +326,7 @@ protected function iterateOnKey($key, $val) { // Base case. if (!is_array($val)) { $this->printVal($key, $val); + return; } @@ -407,6 +408,7 @@ public function getOptionParser() { ->epilog( __('Provide the Key.name(s) to fetch from Configure::read() as arguments. Multiple keys may be specified, separated by spaces.') ); + return $parser; } }