NimScript: setCommand takes an optional project filename

This commit is contained in:
Araq 2015-09-29 20:44:12 +02:00
commit 1b7d8246c1
3 changed files with 9 additions and 2 deletions

View file

@ -48,7 +48,7 @@ proc handleCmdLine() =
gProjectFull = canonicalizePath(gProjectName)
except OSError:
gProjectFull = gProjectName
var p = splitFile(gProjectFull)
let p = splitFile(gProjectFull)
gProjectPath = p.dir
gProjectName = p.name
else: