adjusted all framework commands to use proper exit codes

use console exit codes introduced in pull request #647
This commit is contained in:
Carsten Brandt
2012-04-27 23:01:24 +02:00
parent a6d8222df1
commit 4fd934d0bd
8 changed files with 69 additions and 41 deletions

View File

@@ -44,6 +44,7 @@ EOD;
/**
* Execute the action.
* @param array command line parameters specific for this command
* @return integer|null non zero application exit code for help or null on success
*/
public function run($args)
{
@@ -51,7 +52,7 @@ EOD;
{
echo "Error: module ID is required.\n";
echo $this->getHelp();
return;
return 1;
}
$moduleID=$args[0];