From 1bf2abc2f59c920ad9d3b3bd237a924a2f112e73 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Sun, 12 May 2002 16:30:26 +0000 Subject: [PATCH] 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 --- pear/scripts/pear.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1