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 '' , ConsoleOptionParser|array $parser null )
Make a new Subcommand
$name
$help
optional '' ConsoleOptionParser
|array $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
xml( SimpleXmlElement $parent )
Append this subcommand to the Parent element
$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-ConsoleInputSubcommand.html