An object to represent a single argument used in the command line. ConsoleOptionParser creates these when you use addArgument()
$_choices
protected array
$_help
protected string
$_name
protected string
$_required
protected boolean
__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 isRequired( )
Check if this argument is a required argument
name( )
Get the value of the name attribute.
validChoice( string $value )
Check that $value is a valid choice for this argument.
$value
ConsoleException
xml( SimpleXmlElement $parent )
Append this arguments XML representation to the passed in SimpleXml object.
$parent
© 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.
https://api.cakephp.org/2.9/class-ConsoleInputArgument.html