Browse Source

better formatting for console commands help

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

8
framework/console/controllers/HelpController.php

@ -172,9 +172,7 @@ class HelpController extends Controller
} }
if ($comment !== '') { if ($comment !== '') {
echo "\nDESCRIPTION"; echo "\n" . $comment . "\n";
echo "\n-----------\n\n";
echo $comment . "\n";
} }
$options = $this->getGlobalOptions($class, $controller); $options = $this->getGlobalOptions($class, $controller);
@ -235,9 +233,7 @@ class HelpController extends Controller
} }
if ($comment !== '') { if ($comment !== '') {
echo "\nDESCRIPTION"; echo "\n" . $comment . "\n";
echo "\n-----------\n\n";
echo $comment . "\n";
} }
$options = $this->getOptions($method, $meta); $options = $this->getOptions($method, $meta);

Loading…
Cancel
Save