Browse Source

better formatting of global parameters help

tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
d59f6c00b8
  1. 6
      framework/console/controllers/HelpController.php

6
framework/console/controllers/HelpController.php

@ -184,9 +184,9 @@ class HelpController extends Controller
if ($description != '') {
echo ": $description\n";
}
}
echo "\n";
}
}
$actions = $this->getActions($controller);
if ($actions !== array()) {
@ -334,9 +334,9 @@ class HelpController extends Controller
$type = $comment;
$doc = '';
}
$comment = $type === '' ? '' : ($type . '.');
$comment = $type === '' ? '' : ($type);
if (trim($doc) !== '') {
$comment .= "\n" . preg_replace("/^/m", " ", $doc);
$comment .= ', ' . preg_replace("/^/m", "", $doc);
}
$options[$name] = $comment;
break;

Loading…
Cancel
Save