summary refs log tree commit diff stats
path: root/compiler/service.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-24 11:58:18 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-24 11:58:18 +0200
commitb503ca03f697d7364efe0bc5cf367e9e8bd12418 (patch)
tree61e8473bd4e50c9522ddd8eeb18dd82890653560 /compiler/service.nim
parent7df892db9dcfff24be8f0a3c0bff01643d649049 (diff)
downloadNim-b503ca03f697d7364efe0bc5cf367e9e8bd12418.tar.gz
refactoring: move 'argument' global into config object
Diffstat (limited to 'compiler/service.nim')
-rw-r--r--compiler/service.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/service.nim b/compiler/service.nim
index 7cdfc112c..6ec9b9046 100644
--- a/compiler/service.nim
+++ b/compiler/service.nim
@@ -42,7 +42,7 @@ proc processCmdLine*(pass: TCmdLinePass, cmd: string; config: ConfigRef) =
     of cmdArgument:
       if processArgument(pass, p, argsCount, config): break
   if pass == passCmd2:
-    if optRun notin gGlobalOptions and arguments != "" and options.command.normalize != "run":
+    if optRun notin gGlobalOptions and config.arguments.len > 0 and options.command.normalize != "run":
       rawMessage(errArgsNeedRunOption, [])
 
 proc serve*(cache: IdentCache; action: proc (cache: IdentCache){.nimcall.}; config: ConfigRef) =