- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc.
(http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License
- Version
- $Id$
(http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License
(http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License
- Version
- Release: @
- Since
- Class available since Release 0.6.0
- Todo:
- Handle params with multiple values, e.g. –colors=red,green,blue Set value of parameter to the array of values. Allow user to specify the separator with Zend_Console_Getopt::CONFIG_PARAMETER_SEPARATOR. If this config value is null or empty string, do not split values into arrays. Default separator is comma (',').
- Todo:
- Handle params with multiple values specified with separate options e.g. –colors red –colors green –colors blue should give one option with an array(red, green, blue). Enable with Zend_Console_Getopt::CONFIG_CUMULATIVE_PARAMETERS. Default is that subsequent options overwrite the parameter value.
- Todo:
- Handle flags occurring multiple times, e.g. -v -v -v Set value of the option's parameter to the integer count of instances instead of a boolean. Enable with Zend_Console_Getopt::CONFIG_CUMULATIVE_FLAGS. Default is that the value is simply boolean true regardless of how many instances of the flag appear.
- Todo:
- Handle flags that implicitly print usage message, e.g. –help
- Todo:
- Handle freeform options, e.g. –set-variable Enable with Zend_Console_Getopt::CONFIG_FREEFORM_FLAGS All flag-like syntax is recognized, no flag generates an exception.
- Todo:
- Handle numeric options, e.g. -1, -2, -3, -1000 Enable with Zend_Console_Getopt::CONFIG_NUMERIC_FLAGS The rule must specify a named flag and the '#' symbol as the parameter type. e.g., 'lines=#'
- Todo:
- Enable user to specify header and footer content in the help message.
- Todo:
- Feature request to handle option interdependencies. e.g. if -b is specified, -a must be specified or else the usage is invalid.
- Todo:
- Feature request to implement callbacks. e.g. if -a is specified, run function 'handleOptionA'().