make call to showUsage conditional on whether request is an API request

This commit is contained in:
Marc DeTrano 2018-07-27 15:30:42 -06:00 committed by Thomas Gelf
parent cde61e122b
commit 2c3c09cb9c
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ class CommandController extends ObjectController
*/
public function indexAction()
{
$this->showUsage();
if (! $this->getRequest()->isApiRequest()) {
$this->showUsage();
}
parent::indexAction();
}