summary refs log tree commit diff stats
path: root/tools/nimfind.nim
diff options
context:
space:
mode:
author3n-k1 <51172302+3n-k1@users.noreply.github.com>2019-11-28 02:32:11 -0500
committerMiran <narimiran@disroot.org>2019-11-28 08:32:11 +0100
commit0944b0f4415a262968cf68f1dbb035cfc3326680 (patch)
treef352639cd219382cb1520ff15366237c45ebc320 /tools/nimfind.nim
parenta7aeabb9d2c70a5d9bd89abf3eb08372d2c6d9d0 (diff)
downloadNim-0944b0f4415a262968cf68f1dbb035cfc3326680.tar.gz
[backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. (#12754)
Diffstat (limited to 'tools/nimfind.nim')
-rw-r--r--tools/nimfind.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/nimfind.nim b/tools/nimfind.nim
index 7d99cbe83..eca3d8eb2 100644
--- a/tools/nimfind.nim
+++ b/tools/nimfind.nim
@@ -183,10 +183,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
@@ -216,7 +216,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
   self.initDefinesProg(conf, "nimfind")
 
   if paramCount() == 0:
-    stdout.writeline(Usage)
+    stdout.writeLine(Usage)
     return
 
   self.processCmdLineAndProjectPath(conf)
@@ -232,4 +232,4 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
 
   discard self.loadConfigsAndRunMainCommand(cache, conf)
 
-handleCmdline(newIdentCache(), newConfigRef())
+handleCmdLine(newIdentCache(), newConfigRef())