cvs: php4 /pear/scripts pear.in

From: Date: Sun, 12 May 2002 16:42:50 +0000
Subject: cvs: php4 /pear/scripts pear.in
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3785@lists.php.net to get a copy of this message
cox Sun May 12 12:42:50 2002 EDT Modified files: /php4/pear/scripts pear.in Log: The command name is now the first arg not the second Index: php4/pear/scripts/pear.in diff -u php4/pear/scripts/pear.in:1.43 php4/pear/scripts/pear.in:1.44 --- php4/pear/scripts/pear.in:1.43 Sun May 12 12:30:26 2002 +++ php4/pear/scripts/pear.in Sun May 12 12:42:50 2002 @@ -116,7 +116,7 @@ $config->store('user'); } -$command = (isset($options[1][1])) ? $options[1][1] : null; +$command = (isset($options[1][0])) ? $options[1][0] : null; if (empty($command) && ($store_user_config || $store_system_config)) { exit; @@ -128,13 +128,13 @@ if (empty($all_commands[$command]) || $command == 'help') { usage(null, @$options[1][2]); } - + $cmd = PEAR_Command::factory($command, $config); if (PEAR::isError($cmd)) { die($cmd->getMessage()); } - - $cmdargs = array_slice($options[1], 2); + + $cmdargs = array_slice($options[1], 1); $ok = $cmd->run($command, $cmdopts, $cmdargs); if ($ok === false) { PEAR::raiseError("unknown command `$command'");

« previous php.pear.cvs (#3785) next »