An object to represent a single subcommand used in the command line. Created when you call ConsoleOptionParser::addSubcommand()
$_help
protected string
$_name
protected string
$_parser
protected __construct( string|array $name , string $help '' , Cake\Console\ConsoleOptionParser|array|null $parser null )
Make a new Subcommand
$name
$help
optional '' Cake\Console\ConsoleOptionParser
|array|null $parser
optional null A parser for this subcommand. Either a ConsoleOptionParser, or an array that can be used with ConsoleOptionParser::buildFromArray().
help( integer $width 0 )
Generate the help for this this subcommand.
$width
optional 0 name( )
Get the value of the name attribute.
parser( )
Get the usage value for this option
Cake\Console\ConsoleOptionParser
|booleanxml( SimpleXmlElement $parent )
Append this subcommand to the Parent element
$parent
protected Cake\Console\ConsoleOptionParser
The ConsoleOptionParser for this subcommand.
© 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.ConsoleInputSubcommand.html