gangbang support for NimScript
This commit is contained in:
parent
833a9344fa
commit
494431e3b4
1 changed files with 9 additions and 2 deletions
|
|
@ -645,11 +645,18 @@ proc processSwitch*(pass: TCmdLinePass; p: OptParser) =
|
||||||
proc processArgument*(pass: TCmdLinePass; p: OptParser;
|
proc processArgument*(pass: TCmdLinePass; p: OptParser;
|
||||||
argsCount: var int): bool =
|
argsCount: var int): bool =
|
||||||
if argsCount == 0:
|
if argsCount == 0:
|
||||||
if pass != passCmd2: options.command = p.key
|
# nim filename.nims is the same as "nim e filename.nims":
|
||||||
|
if p.key.endswith(".nims"):
|
||||||
|
options.command = "e"
|
||||||
|
options.gProjectName = unixToNativePath(p.key)
|
||||||
|
arguments = cmdLineRest(p)
|
||||||
|
result = true
|
||||||
|
elif pass != passCmd2:
|
||||||
|
options.command = p.key
|
||||||
else:
|
else:
|
||||||
if pass == passCmd1: options.commandArgs.add p.key
|
if pass == passCmd1: options.commandArgs.add p.key
|
||||||
if argsCount == 1:
|
if argsCount == 1:
|
||||||
# support UNIX style filenames anywhere for portable build scripts:
|
# support UNIX style filenames everywhere for portable build scripts:
|
||||||
options.gProjectName = unixToNativePath(p.key)
|
options.gProjectName = unixToNativePath(p.key)
|
||||||
arguments = cmdLineRest(p)
|
arguments = cmdLineRest(p)
|
||||||
result = true
|
result = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue