An object to represent a single argument used in the command line. ConsoleOptionParser creates these when you use addArgument()
ConsoleOptionParser::addArgument()
__construct( string|array $name , string $help '' , boolean $required false , array $choices array() )
Make a new Input Argument
$name
$help
optional '' $required
optional false $choices
optional array() help( integer $width 0 )
Generate the help for this argument.
$width
optional 0 string
isRequired( )
Check if this argument is a required argument
boolean
validChoice( string $value )
Check that $value is a valid choice for this argument.
$value
boolean
ConsoleException
xml( SimpleXmlElement $parent )
Append this arguments XML representation to the passed in SimpleXml object.
$parent
SimpleXmlElement
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.7/class-ConsoleInputArgument.html