diff options
Diffstat (limited to 'pear/scripts/pearcmd.php')
-rw-r--r-- | pear/scripts/pearcmd.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pear/scripts/pearcmd.php b/pear/scripts/pearcmd.php index 09b2e30af9..338ed406c5 100644 --- a/pear/scripts/pearcmd.php +++ b/pear/scripts/pearcmd.php @@ -49,7 +49,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"); +$options = Console_Getopt::getopt2($argv, "c:C:d:D:Gh?sSqu:vV"); if (PEAR::isError($options)) { usage($options); } @@ -157,7 +157,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))) { + if (PEAR::isError($tmp = Console_Getopt::getopt2($options[1], $short_args, $long_args))) { break; } list($tmpopt, $params) = $tmp; |