return $this; } public function usageHelp() { return <<<USAGE [1mDESCRIPTION[0m This script allows the developer to export all media files from the current storage backend, i.e. file system or database, to S3 via the command line. [1mSYNOPSIS[0m php s3_export.php [--force] [--dry-run] [-h] [--help] [1mOPTIONS[0m --force This parameter will legit upload all your media files to S3. [1mNOTE:[0m Please make sure to back up your media files before you run this! You never know what might happen! --dry-run This parameter will allow developers to simulate exporting media files to S3 without actually uploading anything! USAGE; } } $shell = new Arkade_S3_Shell_Export(); $shell->run();