mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
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
This commit is contained 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);
|
||||
|
||||
Reference in New Issue
Block a user