static $additionalOptions = array(
'regex=' => false,
- 'record' => false,
'file=' => false,
'keep-uploads' => false,
);
- //Fixme: These aren't shown on the --help menu
-
public function __construct() {
foreach( self::$additionalOptions as $option => $default ) {
$this->longOptions[$option] = $option . 'Handler';
}
}
+ public function showHelp() {
+ parent::showHelp();
+
+ print <<<EOT
+
+ParserTest-specific options:
+
+ --regex="<regex>" Only run parser tests that match the given regex
+ --file="<filename>" Prints the version and exits.
+ --keep-uploads Re-use the same upload directory for each test, don't delete it
+
+
+EOT;
+ }
+
}
//Setup CLI arguments
if ( $this->getCliArg( 'regex=' ) ) {
- if ( $this->getCliArg( 'record' ) ) {
- echo "Warning: --record cannot be used with --regex, disabling --record\n";
- $this->setCliArg( 'record', false );
- }
$this->regex = $this->getCliArg( 'regex=' );
} else {
# Matches anything