mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-01 09:31:18 +00:00
argument passing with --run option works again
This commit is contained in:
@@ -96,8 +96,8 @@ proc CommandGenDepend =
|
||||
registerPass(cleanupPass())
|
||||
compileProject()
|
||||
generateDot(projectFullPath)
|
||||
execExternalProgram("dot -Tpng -o" & changeFileExt(projectFullPath, "png") & ' ' &
|
||||
changeFileExt(projectFullPath, "dot"))
|
||||
execExternalProgram("dot -Tpng -o" & changeFileExt(projectFullPath, "png") &
|
||||
' ' & changeFileExt(projectFullPath, "dot"))
|
||||
|
||||
proc CommandCheck =
|
||||
msgs.gErrorMax = high(int) # do not stop after first error
|
||||
|
||||
@@ -45,12 +45,12 @@ proc ProcessCmdLine(pass: TCmdLinePass) =
|
||||
options.commandArgs.add p.key
|
||||
|
||||
if options.projectName == "":
|
||||
options.projectName = unixToNativePath(p.key) # BUGFIX for portable build scripts
|
||||
# support UNIX style filenames anywhere for portable build scripts:
|
||||
options.projectName = unixToNativePath(p.key)
|
||||
arguments = cmdLineRest(p)
|
||||
|
||||
if pass == passCmd2:
|
||||
arguments = cmdLineRest(p)
|
||||
echo "Setting args to ", arguments
|
||||
if optRun notin gGlobalOptions and arguments != "":
|
||||
if pass == passCmd2:
|
||||
if optRun notin gGlobalOptions and arguments != "":
|
||||
rawMessage(errArgsNeedRunOption, [])
|
||||
|
||||
proc prependCurDir(f: string): string =
|
||||
|
||||
Reference in New Issue
Block a user