argument passing with --run option works again
This commit is contained in:
parent
020a10927a
commit
7832af187a
3 changed files with 7 additions and 8 deletions
|
|
@ -96,8 +96,8 @@ proc CommandGenDepend =
|
||||||
registerPass(cleanupPass())
|
registerPass(cleanupPass())
|
||||||
compileProject()
|
compileProject()
|
||||||
generateDot(projectFullPath)
|
generateDot(projectFullPath)
|
||||||
execExternalProgram("dot -Tpng -o" & changeFileExt(projectFullPath, "png") & ' ' &
|
execExternalProgram("dot -Tpng -o" & changeFileExt(projectFullPath, "png") &
|
||||||
changeFileExt(projectFullPath, "dot"))
|
' ' & changeFileExt(projectFullPath, "dot"))
|
||||||
|
|
||||||
proc CommandCheck =
|
proc CommandCheck =
|
||||||
msgs.gErrorMax = high(int) # do not stop after first error
|
msgs.gErrorMax = high(int) # do not stop after first error
|
||||||
|
|
|
||||||
|
|
@ -45,12 +45,12 @@ proc ProcessCmdLine(pass: TCmdLinePass) =
|
||||||
options.commandArgs.add p.key
|
options.commandArgs.add p.key
|
||||||
|
|
||||||
if options.projectName == "":
|
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:
|
if pass == passCmd2:
|
||||||
arguments = cmdLineRest(p)
|
if optRun notin gGlobalOptions and arguments != "":
|
||||||
echo "Setting args to ", arguments
|
|
||||||
if optRun notin gGlobalOptions and arguments != "":
|
|
||||||
rawMessage(errArgsNeedRunOption, [])
|
rawMessage(errArgsNeedRunOption, [])
|
||||||
|
|
||||||
proc prependCurDir(f: string): string =
|
proc prependCurDir(f: string): string =
|
||||||
|
|
|
||||||
1
todo.txt
1
todo.txt
|
|
@ -1,7 +1,6 @@
|
||||||
version 0.8.14
|
version 0.8.14
|
||||||
==============
|
==============
|
||||||
|
|
||||||
- argument passing with --run option is broken
|
|
||||||
- stdlib and compiler should not use deprecated endOfFile and readline
|
- stdlib and compiler should not use deprecated endOfFile and readline
|
||||||
|
|
||||||
version 0.9.0
|
version 0.9.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue