Provides an interface for interacting with a command's options and arguments.
$argNames protected string[]$args protected string[]$options protected array__construct( array $args , array $options , array $argNames )
Constructor
$args $options $argNames List of argument names. Order is expected to be the same as $args.
getArgument( string $name )
Check if a positional argument exists by name
$name getArgumentAt( integer $index )
Get positional arguments by index.
$index hasArgument( string $name )
Check if a positional argument exists by name
$name hasArgumentAt( integer $index )
Check if a positional argument exists
$index
© 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.5/class-Cake.Console.Arguments.html