cvs: pear /Console_Getargs Getargs.php
| From: | Bertrand Mansion | Date: | Sun, 24 Oct 2004 20:42:37 +0000 |
| Subject: | cvs: pear /Console_Getargs Getargs.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-25185@lists.php.net to get a copy of this message | ||
mansion Sun Oct 24 16:42:37 2004 EDT
Modified files:
/pear/Console_Getargs Getargs.php
Log:
'--' breaks the loop but everything after can be eventually parsed as parameters
http://cvs.php.net/diff.php/pear/Console_Getargs/Getargs.php?r1=1.10&r2=1.11&ty=u
Index: pear/Console_Getargs/Getargs.php
diff -u pear/Console_Getargs/Getargs.php:1.10 pear/Console_Getargs/Getargs.php:1.11
--- pear/Console_Getargs/Getargs.php:1.10 Sun Oct 24 16:37:57 2004
+++ pear/Console_Getargs/Getargs.php Sun Oct 24 16:42:37 2004
@@ -16,7 +16,7 @@
// | Author: Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Getargs.php,v 1.10 2004/10/24 20:37:57 mansion Exp $
+// $Id: Getargs.php,v 1.11 2004/10/24 20:42:37 mansion Exp $
require_once 'PEAR.php';
@@ -625,7 +625,7 @@
if ($arg === '--') {
// '--' alone breaks the loop
- break;
+ continue;
}
if ($arg === '--help' || $arg === '-h') {
// Asking for help breaks the loop.