diff options
Diffstat (limited to 'compiler/commands.nim')
-rwxr-xr-x | compiler/commands.nim | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index d999dc065..910a8bca5 100755 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -23,6 +23,7 @@ type proc ProcessCommand*(switch: string, pass: TCmdLinePass) proc processSwitch*(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) + # implementation const @@ -230,8 +231,7 @@ proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) = options.outFile = arg of "mainmodule", "m": expectArg(switch, arg, pass, info) - gProjectName = arg - gProjectFull = gProjectPath / gProjectName + optMainModule = arg of "define", "d": expectArg(switch, arg, pass, info) DefineSymbol(arg) @@ -247,6 +247,9 @@ proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) = of "debuginfo": expectNoArg(switch, arg, pass, info) incl(gGlobalOptions, optCDebug) + of "embedsrc": + expectNoArg(switch, arg, pass, info) + incl(gGlobalOptions, optEmbedOrigSrc) of "compileonly", "c": expectNoArg(switch, arg, pass, info) incl(gGlobalOptions, optCompileOnly) @@ -449,6 +452,9 @@ proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) = of "def": expectNoArg(switch, arg, pass, info) incl(gGlobalOptions, optDef) + of "eval": + expectArg(switch, arg, pass, info) + gEvalExpr = arg of "context": expectNoArg(switch, arg, pass, info) incl(gGlobalOptions, optContext) |