cvs: php4 /pear package-Console_Getopt.xml /pear/Console Getopt.php

From: Date: Sun, 26 May 2002 12:13:47 +0000
Subject: cvs: php4 /pear package-Console_Getopt.xml /pear/Console Getopt.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4088@lists.php.net to get a copy of this message
ssb Sun May 26 08:13:47 2002 EDT Modified files: /php4/pear package-Console_Getopt.xml /php4/pear/Console Getopt.php Log: * POSIX getopt compatibility support (first argv element is the command) Index: php4/pear/package-Console_Getopt.xml diff -u php4/pear/package-Console_Getopt.xml:1.5 php4/pear/package-Console_Getopt.xml:1.6 --- php4/pear/package-Console_Getopt.xml:1.5 Mon May 20 04:58:46 2002 +++ php4/pear/package-Console_Getopt.xml Sun May 26 08:13:47 2002 @@ -17,15 +17,17 @@ </maintainer> <maintainer> <user>ssb</user> - <role>helper</role> + <role>developer</role> <name>Stig Bakken</name> <email>stig@php.net</email> </maintainer> </maintainers> <release> - <version>0.10</version> - <date>2002-05-12</date> - <notes>Packaging fix</notes> + <version>0.11</version> + <date>2002-05-26</date> + <notes>POSIX getopt compatibility fix: treat first element of args +array as command name +</notes> <state>beta</state> <filelist> <dir name="Console"> @@ -34,6 +36,12 @@ </filelist> </release> <changelog> + <release> + <version>0.10</version> + <date>2002-05-12</date> + <notes>Packaging fix</notes> + <state>beta</state> + </release> <release> <version>0.9</version> <date>2002-05-12</date> Index: php4/pear/Console/Getopt.php diff -u php4/pear/Console/Getopt.php:1.14 php4/pear/Console/Getopt.php:1.15 --- php4/pear/Console/Getopt.php:1.14 Mon May 13 13:28:37 2002 +++ php4/pear/Console/Getopt.php Sun May 26 08:13:47 2002 @@ -16,7 +16,7 @@ // | Author: Andrei Zmievski <andrei@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Getopt.php,v 1.14 2002/05/13 17:28:37 andrei Exp $ +// $Id: Getopt.php,v 1.15 2002/05/26 12:13:47 ssb Exp $ require_once 'PEAR.php'; @@ -77,6 +77,9 @@ if ($long_options) sort($long_options); + if ($args[0]{0} != '-') { + array_shift($args); + } reset($args); while (list($i, $arg) = each($args)) {

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