diff options
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r-- | compiler/nim.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim index 1f8a55897..5fcf043b5 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -48,12 +48,20 @@ proc processCmdLine(pass: TCmdLinePass, cmd: string; config: ConfigRef) = case p.kind of cmdEnd: break of cmdLongOption, cmdShortOption: + config.commandLine.add " " + config.commandLine.add p.key + if p.val.len > 0: + config.commandLine.add ':' + config.commandLine.add p.val + if p.key == " ": p.key = "-" if processArgument(pass, p, argsCount, config): break else: processSwitch(pass, p, config) of cmdArgument: + config.commandLine.add " " + config.commandLine.add p.key if processArgument(pass, p, argsCount, config): break if pass == passCmd2: if {optRun, optWasNimscript} * config.globalOptions == {} and |