Browse Source

help cleanup

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
225d2bb1b3
  1. 8
      framework/console/controllers/HelpController.php

8
framework/console/controllers/HelpController.php

@ -178,13 +178,9 @@ class HelpController extends Controller
echo "\nSUB-COMMANDS\n\n"; echo "\nSUB-COMMANDS\n\n";
$prefix = $controller->getUniqueId(); $prefix = $controller->getUniqueId();
foreach ($actions as $action) { foreach ($actions as $action) {
if ($controller->defaultAction === $action) { echo "* $prefix/$action\n";
echo " * $prefix/$action (or $prefix)\n";
} else {
echo " * $prefix/$action\n";
}
} }
echo "\nTo see the help of each sub-command, enter:\n"; echo "\n\nTo see the help of each sub-command, enter:\n";
echo "\n yiic help <sub-command>\n\n"; echo "\n yiic help <sub-command>\n\n";
} }
} }

Loading…
Cancel
Save