From fe8493861298b1c727e2468f736e9892fb78a42e Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Mon, 7 Dec 2015 00:26:19 +0000 Subject: Make command in help output configurable --- config.ini.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.ini.example') diff --git a/config.ini.example b/config.ini.example index 3b2bfd3..c96b4df 100644 --- a/config.ini.example +++ b/config.ini.example @@ -1,2 +1,3 @@ url = http://www.blaupload.co.uk -password = password (not required) \ No newline at end of file +password = password (not required) +command = !blaup \ No newline at end of file -- cgit v1.2.3 From 47cb1f271fcfe28a1e8cd4184f7820e6d7f30dd0 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Mon, 7 Dec 2015 00:30:02 +0000 Subject: Removed \! from config value to fix output --- config.ini.example | 2 +- search.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'config.ini.example') diff --git a/config.ini.example b/config.ini.example index c96b4df..2ea6ff6 100644 --- a/config.ini.example +++ b/config.ini.example @@ -1,3 +1,3 @@ url = http://www.blaupload.co.uk password = password (not required) -command = !blaup \ No newline at end of file +command = blaup \ No newline at end of file diff --git a/search.php b/search.php index c057423..bb98c40 100644 --- a/search.php +++ b/search.php @@ -36,10 +36,10 @@ try { echo "blaupload-search v" . $version . "\n"; die(); } else if ($args[0] == "-h" || $args[0] == "--help") { - echo "Usage: " . $config["command"] . " [query] #[page] | "; - echo "e.g: " . $config["command"] . " intense | "; - echo $config["command"] . " intense marcus | "; - echo $config["command"] . " intense marcus #2 (returns the second page of results)\n"; + echo "Usage: !" . $config["command"] . " [query] #[page] | "; + echo "e.g: !" . $config["command"] . " intense | "; + echo "!" . $config["command"] . " intense marcus | "; + echo "!" . $config["command"] . " intense marcus #2 (returns the second page of results)\n"; die(); } -- cgit v1.2.3 From ab30739538bffdf08ee2f3661b1ea83eb33dba7f Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Mon, 7 Dec 2015 00:40:35 +0000 Subject: Newline at end of config --- config.ini.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.ini.example') diff --git a/config.ini.example b/config.ini.example index 2ea6ff6..4e77b94 100644 --- a/config.ini.example +++ b/config.ini.example @@ -1,3 +1,3 @@ url = http://www.blaupload.co.uk password = password (not required) -command = blaup \ No newline at end of file +command = blaup -- cgit v1.2.3