summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-08-16 13:40:52 +0200
committerAraq <rumpf_a@web.de>2015-08-16 13:41:30 +0200
commit69b32637b1f12000b64fa4db452323dc30b3567f (patch)
treeceb379ddd4282471378c52fa678b321941094231 /compiler/commands.nim
parentd81578cb9b4776356d610e2329ffc7f3323d13db (diff)
downloadNim-69b32637b1f12000b64fa4db452323dc30b3567f.tar.gz
implements experimental new config system based on NimScript
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 7a908b270..fc28577aa 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -641,7 +641,7 @@ proc processSwitch*(pass: TCmdLinePass; p: OptParser) =
 proc processArgument*(pass: TCmdLinePass; p: OptParser;
                       argsCount: var int): bool =
   if argsCount == 0:
-    options.command = p.key
+    if pass != passCmd2: options.command = p.key
   else:
     if pass == passCmd1: options.commandArgs.add p.key
     if argsCount == 1: