summaryrefslogtreecommitdiff
path: root/pear/scripts/pearcmd.php
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2003-12-06 21:35:02 +0000
committerGreg Beaver <cellog@php.net>2003-12-06 21:35:02 +0000
commit8cd5e9ec6eaec06435e77f5e31cbbbdf16e2c8e9 (patch)
treeaab3e7aa2e09d348dca5d8a7ae5a2e6b538d7092 /pear/scripts/pearcmd.php
parent37bcfda978eb909082b43433ad26fe216378c6f8 (diff)
downloadphp-git-8cd5e9ec6eaec06435e77f5e31cbbbdf16e2c8e9.tar.gz
fix for Console_GetOpt 2.0 (what was 1.1 - re-release being negotiated)
Diffstat (limited to 'pear/scripts/pearcmd.php')
-rw-r--r--pear/scripts/pearcmd.php2
1 files changed, 2 insertions, 0 deletions
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;
}