diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-04-23 01:02:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 10:02:18 +0200 |
commit | 5c534b2943145106db99212fb9bb75fde289b6f5 (patch) | |
tree | c62bed2a203a1cced3b3bee1d7eeafdea95273ea /compiler/nim.nim | |
parent | 4b43d42b98518e7b6cf66d00932394e7fa0a8ab4 (diff) | |
download | Nim-5c534b2943145106db99212fb9bb75fde289b6f5.tar.gz |
new cmd: `nim r main [args...]` to compile & run, saving binary under $nimcache/main (#13382)
* implement `nim r main` to compile and run, saving binary to $nimcache * remove outFileAbs for now
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r-- | compiler/nim.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim index 997888cb8..7fe0db5cf 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -63,7 +63,7 @@ proc processCmdLine(pass: TCmdLinePass, cmd: string; config: ConfigRef) = if processArgument(pass, p, argsCount, config): break if pass == passCmd2: if {optRun, optWasNimscript} * config.globalOptions == {} and - config.arguments.len > 0 and config.command.normalize notin ["run", "e"]: + config.arguments.len > 0 and config.command.normalize notin ["run", "e", "r"]: rawMessage(config, errGenerated, errArgsNeedRunOption) proc handleCmdLine(cache: IdentCache; conf: ConfigRef) = |