Overview

Namespaces

  • None
  • Peg
    • Cli
      • Commands
    • Config
    • Custom
      • Command
        • Action
          • Generate
          • Parse
      • CommandLine
      • Config
      • Localization
      • Utilities
    • Lib
      • Definitions
        • Element
      • Generator
      • Lexers
      • Plugins
      • Signals
        • Data
          • Definitions
          • Lexers
        • Type
  • PHP

Classes

  • Generate
  • Help
  • Init
  • Parse
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo
 1: <?php
 2: /**
 3:  * @author Jefferson González
 4:  * @license MIT
 5:  * @link http://github.com/peg-org/peg-custom Source code.
 6:  */
 7: 
 8: namespace Peg\Custom\Command;
 9: 
10: use Peg\Custom\Application;
11: 
12: /**
13:  * Display overall help or for a given command.
14:  */
15: class Help extends \Peg\Custom\CommandLine\Command
16: {
17: 
18:     public function __construct()
19:     {
20:         parent::__construct("help");
21: 
22:         $this->description = t("Display a help message for a specific command.");
23: 
24:         $this->description .= "\n" . t("Example:") . " " .
25:             Application::GetCLIParser()->application_name . " help <command>"
26:         ;
27: 
28:         $this->RegisterAction(new Action\Help());
29:     }
30: 
31: }
PEG Api API documentation generated by ApiGen 2.8.0