argument passing with --run option works again

This commit is contained in:
Araq
2011-11-27 17:34:45 +01:00
parent 020a10927a
commit 7832af187a
3 changed files with 7 additions and 8 deletions

View File

@@ -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

View File

@@ -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 =

View File

@@ -1,7 +1,6 @@
version 0.8.14
==============
- argument passing with --run option is broken
- stdlib and compiler should not use deprecated endOfFile and readline
version 0.9.0