From: Tomas V.V.Cox Date: Sun, 12 May 2002 16:30:26 +0000 (+0000) Subject: The first entry in argv is the command name, so Getopt will stop X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bf2abc2f59c920ad9d3b3bd237a924a2f112e73;p=php 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 --- diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in index 4a38669772..edcbc8900d 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pear.in @@ -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);