An object to represent a single subcommand used in the command line. Created when you call ConsoleOptionParser::addSubcommand()
ConsoleOptionParser::addSubcommand()
__construct( string|array $name , string $help '' , ConsoleOptionParser|array $parser null )
Make a new Subcommand
$name
$help
optional '' ConsoleOptionParser
|array $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/2.7/class-ConsoleInputSubcommand.html