Permalink
Browse files

Add --help as alias to -h.

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP_Interop/trunk@227882 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
Jan Schneider
Jan Schneider committed Jan 22, 2007
1 parent 8b66e1d commit 4f2e3e0ca8d154c77c4497dd7c3598b56d1be974
Showing with 3 additions and 1 deletion.
  1. +3 −1 interop_client_run.php
View
@@ -52,7 +52,7 @@
$restrict = NULL;
#$_SERVER['argv'] = array('-r', "Round 3", '-s', "Local PEAR::SOAP");
-$args = Console_Getopt::getopt($_SERVER['argv'], 'c:dehl:m:np:r:s:t:v:wq');
+$args = Console_Getopt::getopt($_SERVER['argv'], 'c:dehl:m:np:r:s:t:v:wq', array('help'));
function help() {
print <<<END
@@ -71,6 +71,7 @@ function help() {
-v php|soapval run tests with specific param types (requires -t)
-w run wsdl tests only (requires -t)
-q do not run tests
+
END;
}
@@ -107,6 +108,7 @@ function print_endpoint_names()
$iop->fetchEndpoints();
break;
case 'h':
+ case '--help':
help();
exit(1);
break;

0 comments on commit 4f2e3e0

Please sign in to comment.