public function __construct($name, $group = NULL) { $this->spec = new \GetOptionKit\OptionCollection(); $this->addOption('h|help', 'help information'); $this->name = $name; $this->group = $group; }
public function __construct() { parent::__construct('course-rebuild', 'cache'); $this->addOption('a|all', 'rebuild all courses cache'); $this->addArgument('courseid'); $this->minArguments = 0; }