diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-24 11:58:18 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-24 11:58:18 +0200 |
commit | b503ca03f697d7364efe0bc5cf367e9e8bd12418 (patch) | |
tree | 61e8473bd4e50c9522ddd8eeb18dd82890653560 /compiler/service.nim | |
parent | 7df892db9dcfff24be8f0a3c0bff01643d649049 (diff) | |
download | Nim-b503ca03f697d7364efe0bc5cf367e9e8bd12418.tar.gz |
refactoring: move 'argument' global into config object
Diffstat (limited to 'compiler/service.nim')
-rw-r--r-- | compiler/service.nim | 2 |
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) = |