summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjoe <joe@lc8n.com>2013-09-24 15:22:29 +0100
committerwjoe <joe@lc8n.com>2013-09-24 15:22:29 +0100
commitfd7d859533cd3c8852d345e7d3c783c630d50bc4 (patch)
treeaeeac947f084e3f5b51444cf2a770c6727a7b24f
parent8744dee4f21263c4da72116aa3920e850abd0366 (diff)
Added help message
-rwxr-xr-xblasearch.java6
1 files changed, 5 insertions, 1 deletions
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;