summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-08-30 04:52:32 -0700
committerAndreas Rumpf <rumpf_a@web.de>2018-08-30 13:52:32 +0200
commited0cb7b85d8d48bcebb63a5e90a45a4e29bcb673 (patch)
treea89177259a1fb42477adbafa09c1790c5fe50535 /compiler/commands.nim
parent01211ced1d5c3252c88e61bbbb6bb78dcc5575f0 (diff)
downloadNim-ed0cb7b85d8d48bcebb63a5e90a45a4e29bcb673.tar.gz
make config.nims behave like nim.cfg in terms of where these scripts are searched / run (#8682)
* run project config.nims if exists, then inputfile.nims if exists
* ~/.config/nim/config.nims can now be used
* also check in getSystemConfigPath for config.nims
* refactor handleCmdLine for nim and nimsuggest
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 8165fa5d4..b47ccf610 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -651,7 +651,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
     else: localError(conf, info, "invalid option for --symbolFiles: " & arg)
   of "skipcfg":
     expectNoArg(conf, switch, arg, pass, info)
-    incl(conf.globalOptions, optSkipConfigFile)
+    incl(conf.globalOptions, optSkipSystemConfigFile)
   of "skipprojcfg":
     expectNoArg(conf, switch, arg, pass, info)
     incl(conf.globalOptions, optSkipProjConfigFile)