-
__construct ($options = array())
| $options |
An array of sfCommandOption objects |
Constructor.
-
(string) shortcutToName ($shortcut)
Returns the option name given a shortcut.
returns The option name
-
(array) getOptions ()
Gets the array of sfCommandOption objects.
returns An array of sfCommandOption objects
-
(Boolean) hasShortcut ($name)
| $name |
The option shortcut |
Returns true if an option object exists by shortcut.
returns true if the option object exists, false otherwise
-
getOption ($name)
Returns an option by name.
returns A sfCommandOption object
-
setOptions ($options = array())
| $options |
An array of sfCommandOption objects |
Sets the sfCommandOption objects.
-
(array) getDefaults ()
Gets an array of default values.
returns An array of all default values
-
addOption ($option)
| $option |
A sfCommandOption object |
Add a sfCommandOption objects.
-
(Boolean) hasOption ($name)
Returns true if an option object exists by name.
returns true if the option object exists, false otherwise
-
addOptions ($options = array())
| $options |
An array of sfCommandOption objects |
Add an array of sfCommandOption objects.
-
getOptionForShortcut ($shortcut)
Gets an option by shortcut.
returns A sfCommandOption object