From fd7d859533cd3c8852d345e7d3c783c630d50bc4 Mon Sep 17 00:00:00 2001 From: wjoe Date: Tue, 24 Sep 2013 15:22:29 +0100 Subject: Added help message --- blasearch.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blasearch.java b/blasearch.java index 74ce079..8be06d2 100755 --- a/blasearch.java +++ b/blasearch.java @@ -32,7 +32,7 @@ public class blasearch { { String query = ""; - String version = "v1.5.0"; + String version = "v1.5.1"; /* Build query from query or arguments, depending on whether arguments were given. */ @@ -54,6 +54,10 @@ public class blasearch { System.out.println(version); System.exit(0); } + if (query.equals("-h") || query.equals("--help")) { + System.out.println("Usage: !search [-n pageNumber] search query | Examples: !search bla : Returns first 2 search results for 'bla'. | !search bla -n 2 : Searches for the second two results for 'bla'"); + System.exit(0); + } String[] qParts = query.split(" "); int offset = 0; int start = 0; -- cgit v1.2.3