Need clarify on Console_Getargs feature

From: Date: Mon, 05 Feb 2007 11:17:34 +0000
Subject: Need clarify on Console_Getargs feature
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26499@lists.php.net to get a copy of this message
Hi Console_Getargs maintainers, While I'm working on another project, I've need to use PHP_CompatInfo (PCI) and its command line option (what use Console_Getargs package). While all run fine with version less or equal than 1.3.2, I realized that PCI won't run anymore. I 've installed Console_Getargs 1.3.4 I investigate a bit to find the new fix introduced with version 1.3.3 related to bug 9252 [1] see checkRequired() method and class constructor. My question, and probably related to open bug 9583 [2], is : How do we define an option with a value required only when is given on command line ( isDefined() ) ? I want to have an error only when PCI -myOption And no error when PCI or PCI -myOption myOptionValue What is the solution ? Thanks in advance for reply Laurent [1] http://pear.php.net/bugs/bug.php?id=9252 [2] http://pear.php.net/bugs/bug.php?id=9583

« previous php.pear.general (#26499) next »