Skip to content
Permalink
Browse files

Display sorted command list

  • Loading branch information...
rchavik committed Sep 16, 2017
1 parent b85ef39 commit a93106005bb98458b1637da8993c6b86ef2d6168
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/Shell/HelpShell.php
@@ -73,15 +73,19 @@ public function main()
}
if (!$this->commands) {
$this->commands = $this->getCommands();
$this->commands = new CommandCollection($this->getCommands());
}
$commands = $this->commands->getIterator();
$commands->ksort();
$commands = new CommandCollection((array)$commands);
if ($this->param('xml')) {
$this->asXml($this->commands);
$this->asXml($commands);
return;
}
$this->asText($this->commands);
$this->asText($commands);
}
/**

0 comments on commit a931060

Please sign in to comment.
You can’t perform that action at this time.