An object to represent a single argument used in the command line. ConsoleOptionParser creates these when you use addArgument()
Cake\Console\ConsoleOptionParser::addArgument()__construct( string|array $name , string $help '' , boolean $required false , array $choices [] )
Make a new Input Argument
$name $help optional '' $required optional false $choices optional [] help( integer $width 0 )
Generate the help for this argument.
$width optional 0 stringisEqualTo( Cake\Console\ConsoleInputArgument $argument )
Checks if this argument is equal to another argument.
Cake\Console\ConsoleInputArgument $argument booleanisRequired( )
Check if this argument is a required argument
booleanvalidChoice( string $value )
Check that $value is a valid choice for this argument.
$value booleanCake\Console\Exception\ConsoleExceptionxml( 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/3.1/class-Cake.Console.ConsoleInputArgument.html