mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Removing unused variable from Shell.
Making subcommand parsers correctly output XML help.
This commit is contained in:
parent
a6a627bd92
commit
1d5f730a10
2 changed files with 1 additions and 2 deletions
|
@ -477,7 +477,7 @@ class ConsoleOptionParser {
|
|||
) {
|
||||
$subparser = $this->_subcommands[$subcommand]->parser();
|
||||
$subparser->command($this->command() . ' ' . $subparser->command());
|
||||
return $subparser->help();
|
||||
return $subparser->help(null, $format, $width);
|
||||
}
|
||||
$formatter = new HelpFormatter($this);
|
||||
if ($format == 'text' || $format === true) {
|
||||
|
|
|
@ -339,7 +339,6 @@ class Shell extends Object {
|
|||
$this->command = $command;
|
||||
|
||||
if (!empty($this->params['help'])) {
|
||||
$isXml = false;
|
||||
$format = 'text';
|
||||
if (!empty($this->args[0]) && $this->args[0] == 'xml') {
|
||||
$format = 'xml';
|
||||
|
|
Loading…
Reference in a new issue