setName('Mind:commandName') ->setDescription('CommandDescription') ->setDefinition(array( new InputArgument('arg1', InputArgument::REQUIRED, 'ArgDescription.'), new InputOption( 'Option', null, InputOption::PARAMETER_REQUIRED, 'Description of the option', 'object' ), new InputOption('detailed', '-d', InputOption::PARAMETER_NONE, ''), new InputOption( 'first-result', null, InputOption::PARAMETER_REQUIRED, 'The first result in the result set.' ) )) ->setHelp(<<runAction(); } public function HTTPExecute() { $this->runAction(); } private function action() { return $this; } public function runAction() { return $this->action(); } }