Exemple #1
0
 function __construct($parent, $name, $docparser, $when_invoked)
 {
     parent::__construct($parent, $name, $docparser);
     $this->when_invoked = $when_invoked;
     $this->alias = $docparser->get_tag('alias');
     $this->synopsis = $docparser->get_synopsis();
     if (!$this->synopsis && $this->longdesc) {
         $this->synopsis = self::extract_synopsis($this->longdesc);
     }
 }
Exemple #2
0
 function get_subcommands()
 {
     Utils\load_all_commands();
     return parent::get_subcommands();
 }
Exemple #3
0
 /**
  * Get all registered subcommands.
  *
  * @return array
  */
 public function get_subcommands()
 {
     return parent::get_subcommands();
 }