better run also considers the command line; fixes #11719 [feature]

This commit is contained in:
Araq 2019-07-12 21:52:29 +02:00
commit d55cc0888d
3 changed files with 18 additions and 1 deletions

View file

@ -229,6 +229,7 @@ type
projectMainIdx*: FileIndex # the canonical path id of the main module
command*: string # the main command (e.g. cc, check, scan, etc)
commandArgs*: seq[string] # any arguments after the main command
commandLine*: string
keepComments*: bool # whether the parser needs to keep comments
implicitImports*: seq[string] # modules that are to be implicitly imported
implicitIncludes*: seq[string] # modules that are to be implicitly included
@ -335,6 +336,7 @@ proc newConfigRef*(): ConfigRef =
projectMainIdx: FileIndex(0'i32), # the canonical path id of the main module
command: "", # the main command (e.g. cc, check, scan, etc)
commandArgs: @[], # any arguments after the main command
commandLine: "",
keepComments: true, # whether the parser needs to keep comments
implicitImports: @[], # modules that are to be implicitly imported
implicitIncludes: @[], # modules that are to be implicitly included