From 6be5f77331a82d0154f1ed82b07b64917c2a102d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 18 Sep 2017 12:14:27 +0200 Subject: Remove secondary controller for CLI usage output Signed-off-by: Florian Pritz --- application/helpers/filebin_helper.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'application/helpers/filebin_helper.php') diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php index c1a6f4f96..ffecec98d 100644 --- a/application/helpers/filebin_helper.php +++ b/application/helpers/filebin_helper.php @@ -392,4 +392,18 @@ function ensure_json_keys_contain_objects($data, $keys) { return $data; } +function output_cli_usage() { + echo "php index.php [arguments]\n"; + echo "\n"; + echo "Functions:\n"; + echo " file cron Cronjob\n"; + echo " file nuke_id Nukes all IDs sharing the same hash\n"; + echo " user cron Cronjob\n"; + echo " tools update_database Update/Initialise the database\n"; + echo "\n"; + echo "Functions that shouldn't have to be run:\n"; + echo " file clean_stale_files Remove files without database entries\n"; + echo " file update_file_metadata Update filesize and mimetype in database\n"; +} + # vim: set noet: -- cgit v1.2.3-24-g4f1b