summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-15 16:56:32 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-15 16:56:32 +0200
commit27e1fbe7dbefd1846c5c801205881b2ce65c233d (patch)
tree1f0af0f0356310755dd0e26c4a21f2e7f3439999 /compiler/commands.nim
parent0da91aa744703b816b1a9fd64f36b0de23145331 (diff)
downloadNim-27e1fbe7dbefd1846c5c801205881b2ce65c233d.tar.gz
implement the --nilseqs switch properly
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index aae976038..1e5384f16 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -278,6 +278,7 @@ proc testCompileOption*(conf: ConfigRef; switch: string, info: TLineInfo): bool
   of "implicitstatic": result = contains(conf.options, optImplicitStatic)
   of "patterns": result = contains(conf.options, optPatterns)
   of "excessivestacktrace": result = contains(conf.globalOptions, optExcessiveStackTrace)
+  of "nilseqs": result = contains(conf.options, optNilSeqs)
   else: invalidCmdLineOption(conf, passCmd1, switch, info)
 
 proc processPath(conf: ConfigRef; path: string, info: TLineInfo,