Bug #4576 [Opn->Csd]: in Console_Getopt documentation example, should use ->getopt2(), not ->getopt()

From: Date: Sun, 12 Jun 2005 20:23:15 +0000
Subject: Bug #4576 [Opn->Csd]: in Console_Getopt documentation example, should use ->getopt2(), not ->getopt()
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6313@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=4576&edit=1 ID: 4576 Updated by: mj@php.net Reported By: mark dot meves at gmail dot com -Status: Open +Status: Closed Type: Bug Package: Documentation Operating System: irrelevant PHP Version: 5.0.4 New Comment: This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2005-06-12 11:58:21] mark dot meves at gmail dot com Description: ------------ in the code example on page http://pear.php.net/manual/en/package.console.console-getopt.readphpargv.php near the bottom of the page is example code that demonstrates Console_Getopt->readPHPArgv(). it then uses Console_Getopt->getopt() but it *should* be calling Console_Getopt->getopt2(), because of the preceding array_shift() call on the $argv array. I am ashamed to admit this took me a couple hours to figure this out. I had to read the source code, which was excellent documentation in itself. thanks for all the hard work, -mark meves ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=4576&edit=1

« previous php.pear.doc (#6313) next »