com phpruntests: check for help and h on command line: src/testrun/rtPhpTestRun.php
| From: | David Soria Parra | Date: | Thu, 02 Jul 2009 09:24:14 +0000 |
| Subject: | com phpruntests: check for help and h on command line: src/testrun/rtPhpTestRun.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66376@lists.php.net to get a copy of this message | ||
Commit: a30f35f7d12e45015afa6583a6b375588de8911c
Author: Zoe Slattery <zoe@php.net> Thu, 2 Jul 2009 09:24:14 +0000
Parents: 31c7c996a5d8a4945381bfd5df2b8a5a93d4de4d
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=a30f35f7d12e45015afa6583a6b375588de8911c
Log:
check for help and h on command line
Changed paths:
M src/testrun/rtPhpTestRun.php
Diff:
diff --git a/src/testrun/rtPhpTestRun.php b/src/testrun/rtPhpTestRun.php
index f90b5e2..88131ef 100644
--- a/src/testrun/rtPhpTestRun.php
+++ b/src/testrun/rtPhpTestRun.php
@@ -32,7 +32,7 @@ class rtPhpTestRun
$runConfiguration->configure();
//Check help message
- if($runConfiguration->hasCommandLineOption('help')) {
+ if($runConfiguration->hasCommandLineOption('help') ||
$runConfiguration->hasCommandLineOption('h')) {
echo rtText::get('help');
exit;
}