Browse Source

fixed output in Console::select()

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
839650a6bd
  1. 4
      framework/yii/helpers/BaseConsole.php

4
framework/yii/helpers/BaseConsole.php

@ -766,9 +766,9 @@ class BaseConsole
$input = static::stdin(); $input = static::stdin();
if ($input === '?') { if ($input === '?') {
foreach ($options as $key => $value) { foreach ($options as $key => $value) {
echo " $key - $value\n"; static::output(" $key - $value");
} }
echo " ? - Show help\n"; static::output(" ? - Show help");
goto top; goto top;
} elseif (!in_array($input, array_keys($options))) { } elseif (!in_array($input, array_keys($options))) {
goto top; goto top;

Loading…
Cancel
Save