1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00

The first entry in argv is the command name, so Getopt will stop

parsing more args
# Stig be carefull, your change to Getopt breaks BC
This commit is contained in:
Tomas V.V.Cox
2002-05-12 16:30:26 +00:00
parent 93af4bdfb7
commit 1bf2abc2f5
+1 -1
View File
@@ -35,8 +35,8 @@ $all_commands = PEAR_Command::getCommands();
$cmd_options = PEAR_Command::getOptions();
$progname = basename(__FILE__);
// XXX change Getopt to use raiseError() ?
$argv = Console_Getopt::readPHPArgv();
array_shift($argv);
$options = Console_Getopt::getopt($argv, "c:C:d:D:Gh?sSqu:v" . $cmd_options);
if (PEAR::isError($options)) {
usage($options);