Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.1
-
Fix Version/s: 1.7.3
-
Component/s: Zend_Console_Getopt
-
Labels:None
Description
If we make a cli call to a php script without using options and using '-' as argument, Zend_Console_Getopt raise a Zend_Console_Getopt_Exception("Option \"\" is not recognized.") exception.
ex:
myphpscript.php -
This is very annoying because it's a standard to use '-' as argument to tell to the script to look at STDIN to get its input.
Regards,
Remy Damour
as a quick fix, I extended this class, overloading _parseSingleOption method as described below: