summary refs log tree commit diff stats
path: root/nimsuggest/nimsuggest.nim
diff options
context:
space:
mode:
authorpqflx3 <jamestodd@protonmail.com>2017-12-02 14:40:00 -0500
committerAndreas Rumpf <rumpf_a@web.de>2017-12-02 20:40:00 +0100
commitc039bbf6e1186ba8a6f65fa6e0179c8245f2d483 (patch)
treeeddeb738fb072b86d120f07d9e8f62a087cd54ab /nimsuggest/nimsuggest.nim
parent1699d7c2a4c3f3f2ae604dc1ddd29aa34d69ceb1 (diff)
downloadNim-c039bbf6e1186ba8a6f65fa6e0179c8245f2d483.tar.gz
Fixed printing nimsuggest commandline help message (#6863)
Diffstat (limited to 'nimsuggest/nimsuggest.nim')
-rw-r--r--nimsuggest/nimsuggest.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim
index 67645f043..0328b817a 100644
--- a/nimsuggest/nimsuggest.nim
+++ b/nimsuggest/nimsuggest.nim
@@ -526,6 +526,9 @@ proc processCmdLine*(pass: TCmdLinePass, cmd: string) =
     of cmdEnd: break
     of cmdLongoption, cmdShortOption:
       case p.key.normalize
+      of "help":
+        stdout.writeline(Usage)
+        quit()
       of "port":
         gPort = parseInt(p.val).Port
         gMode = mtcp