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 [] )
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 isEqualTo( Cake\Console\ConsoleInputArgument $argument )
Checks if this argument is equal to another argument.
Cake\Console\ConsoleInputArgument
$argument
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
Cake\Console\Exception\ConsoleException
xml( SimpleXmlElement $parent )
Append this arguments XML representation to the passed in SimpleXml object.
$parent
© 2005–2017 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/3.4/class-Cake.Console.ConsoleInputArgument.html