06-16-2010, 07:25 PM
Is there any compiler directive to include command line options into the source? I've looked in the docs and in the forum, and found some mentions about "#pragma", but nothing clear.
I always include the following comment at the top of my source
in order to remember the options needed (sometimes I tinker with them, and they are not the same for every program). It would be easier to include the options into the source:
or
Then all programs could be compiled just with zxb.py program.bas. Of course, the actual command line options would have higher priority than those in the source.
I always include the following comment at the top of my source
Code:
' Compile with the following command:
' zxb.py myprogram.bas --tap --autorun --BASIC --strict-bool
Code:
#option tap
#option strict-bool
Code:
#options tap strict-bool
Then all programs could be compiled just with zxb.py program.bas. Of course, the actual command line options would have higher priority than those in the source.
Marcos Cruz
http://programandala.net
http://programandala.net