diff options
-rwxr-xr-x | blasearch.java | 6 |
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; |