implemented --nimcache config option; big clean up of magic words

This commit is contained in:
Araq 2011-08-19 01:46:24 +02:00
commit c7b130b4e2
8 changed files with 170 additions and 187 deletions

View file

@ -58,7 +58,10 @@ proc HandleCmdLine() =
var command = ""
var filename = ""
ProcessCmdLine(passCmd1, command, filename)
if filename != "": options.projectPath = splitFile(filename).dir
if filename != "":
var p = splitFile(filename)
options.projectPath = p.dir
options.projectName = p.name
nimconf.LoadConfig(filename) # load the right config file
# now process command line arguments again, because some options in the
# command line can overwite the config file's settings