summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-11-20 01:51:14 -0800
committerGitHub <noreply@github.com>2020-11-20 10:51:14 +0100
commit7815ed69d4a3fc7b96c397c7820cef290f5b0a4d (patch)
tree2dc1fa4abd4b14140ff0f5f44cd9836697dc9191 /compiler
parent6cf5ca1dc2c1c0388e0998a24d26f4a9c9b7e60e (diff)
downloadNim-7815ed69d4a3fc7b96c397c7820cef290f5b0a4d.tar.gz
rename loadConfigsAndRunMainCommand => loadConfigsAndProcessCmdLine, reflect reality (#16057)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cmdlinehelper.nim2
-rw-r--r--compiler/nim.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cmdlinehelper.nim b/compiler/cmdlinehelper.nim
index d5a26717d..ffbb0d40b 100644
--- a/compiler/cmdlinehelper.nim
+++ b/compiler/cmdlinehelper.nim
@@ -57,7 +57,7 @@ proc processCmdLineAndProjectPath*(self: NimProg, conf: ConfigRef) =
   else:
     conf.projectPath = AbsoluteDir canonicalizePath(conf, AbsoluteFile getCurrentDir())
 
-proc loadConfigsAndRunMainCommand*(self: NimProg, cache: IdentCache; conf: ConfigRef;
+proc loadConfigsAndProcessCmdLine*(self: NimProg, cache: IdentCache; conf: ConfigRef;
                                    graph: ModuleGraph): bool =
   if self.suggestMode:
     conf.command = "nimsuggest"
diff --git a/compiler/nim.nim b/compiler/nim.nim
index 9ff0eedbc..e3725f803 100644
--- a/compiler/nim.nim
+++ b/compiler/nim.nim
@@ -79,7 +79,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) =
 
   self.processCmdLineAndProjectPath(conf)
   var graph = newModuleGraph(cache, conf)
-  if not self.loadConfigsAndRunMainCommand(cache, conf, graph):
+  if not self.loadConfigsAndProcessCmdLine(cache, conf, graph):
     return
   mainCommand(graph)
   if conf.hasHint(hintGCStats): echo(GC_getStatistics())