/** * Execution of this cli part. Outputs error message and exits with status code 1. * * @return void */ public static function execute() { try { $cli = new self(); $cli->parseOptions(); $cli->validateFileDirectoryOptions(); $cli->validateManagementOptions(); $cli->executeManagement(); } catch (\Exception $e) { echo $e->getMessage() . "\n"; exit(1); } }