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

Loading…
Cancel
Save