make sure PHPProcessor implements Processor interface (re #39)
[phpt.git] / src / PHPT / Controller / CLI / Processors / HelpProcessor.php
blob3accea0916a0902831ee2ccac37f029c396b36f3
1 <?php
3 class PHPT_Controller_CLI_Processors_HelpProcessor implements PHPT_Controller_CLI_Processor
5 public function process(PHPT_Controller_CLI $cli)
7 if (!isset(PHPT_Registry::getInstance()->opts['help']) &&
8 !isset(PHPT_Registry::getInstance()->opts['h'])
9 ) {
10 return;
12 $version = PHPT_Framework::VERSION;
13 echo <<<END
14 PHPT v$version usage:
15 $ phpt [FILE]
16 $ phpt [DIRECTORY]
18 -h --help Display this help text
19 -r --recursive When used with DIRECTORY, recursively scans
20 for .phpt files
21 -q --quiet Loads quiet version of reporter, if available
22 --reporter Reporter Use Reporter to handle out
24 END;
25 exit;