Removing unused variable from Shell.

Making subcommand parsers correctly output XML help.
This commit is contained in:
mark_story 2010-10-20 23:35:30 -04:00
parent a6a627bd92
commit 1d5f730a10
2 changed files with 1 additions and 2 deletions

View file

@ -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) {

View file

@ -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';