diff --git a/cake/console/console_option_parser.php b/cake/console/console_option_parser.php index ccc1670cc..d37fd6898 100644 --- a/cake/console/console_option_parser.php +++ b/cake/console/console_option_parser.php @@ -320,6 +320,15 @@ class ConsoleOptionParser { return $this->_options; } +/** + * Get the array of defined subcommands + * + * @return array + */ + public function subcommands() { + return $this->_subcommands; + } + /** * Parse the argv array into a set of params and args. *