An object to represent a single subcommand used in the command line. Created when you call ConsoleOptionParser::addSubcommand()
Cake\Console\ConsoleOptionParser::addSubcommand()
__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 help( integer $width 0 )
Generate the help for this this subcommand.
$width
optional 0 string
parser( )
Get the usage value for this option
mixed
xml( SimpleXmlElement $parent )
Append this subcommand to the Parent element
$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.ConsoleInputSubcommand.html