From 8cd5e9ec6eaec06435e77f5e31cbbbdf16e2c8e9 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 6 Dec 2003 21:35:02 +0000 Subject: [PATCH] fix for Console_GetOpt 2.0 (what was 1.1 - re-release being negotiated) --- pear/scripts/pearcmd.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pear/scripts/pearcmd.php b/pear/scripts/pearcmd.php index 678e77d617..09b2e30af9 100644 --- a/pear/scripts/pearcmd.php +++ b/pear/scripts/pearcmd.php @@ -48,6 +48,7 @@ $all_commands = PEAR_Command::getCommands(); $argv = Console_Getopt::readPHPArgv(); $progname = basename($argv[0]); +array_shift($argv); $options = Console_Getopt::getopt($argv, "c:C:d:D:Gh?sSqu:vV"); if (PEAR::isError($options)) { usage($options); @@ -155,6 +156,7 @@ if ($fetype == 'Gtk') { $short_args = $long_args = null; PEAR_Command::getGetoptArgs($command, $short_args, $long_args); + array_shift($options[1]); if (PEAR::isError($tmp = Console_Getopt::getopt($options[1], $short_args, $long_args))) { break; } -- 2.50.1