summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2020-07-06 10:55:51 +0200
committernarimiran <narimiran@disroot.org>2020-07-06 10:55:51 +0200
commitebaf603c84a569b8de447fdb66bb05124d3a0772 (patch)
treee8e880dc637f7e8f0f06da4b348b1a59e31220ff /tools
parent842efab8ae867f001d5043a773ee96a7087c2334 (diff)
downloadNim-ebaf603c84a569b8de447fdb66bb05124d3a0772.tar.gz
revert 0944b0f4
Diffstat (limited to 'tools')
-rw-r--r--tools/nimfind.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/nimfind.nim b/tools/nimfind.nim
index 05980d740..6a4585c7e 100644
--- a/tools/nimfind.nim
+++ b/tools/nimfind.nim
@@ -182,10 +182,10 @@ proc processCmdLine*(pass: TCmdLinePass, cmd: string; conf: ConfigRef) =
     parseopt.next(p)
     case p.kind
     of cmdEnd: break
-    of cmdLongOption, cmdShortOption:
+    of cmdLongoption, cmdShortOption:
       case p.key.normalize
       of "help", "h":
-        stdout.writeLine(Usage)
+        stdout.writeline(Usage)
         quit()
       of "project":
         conf.projectName = p.val
@@ -215,7 +215,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
   self.initDefinesProg(conf, "nimfind")
 
   if paramCount() == 0:
-    stdout.writeLine(Usage)
+    stdout.writeline(Usage)
     return
 
   self.processCmdLineAndProjectPath(conf)
@@ -231,4 +231,4 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
 
   discard self.loadConfigsAndRunMainCommand(cache, conf)
 
-handleCmdLine(newIdentCache(), newConfigRef())
+handleCmdline(newIdentCache(), newConfigRef())