<br><div class="gmail_quote">On Tue, Jan 12, 2010 at 8:01 PM, YC <span dir="ltr"><<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="gmail_quote"><div class="im">On Tue, Jan 12, 2010 at 7:53 PM, Eli Barzilay <span dir="ltr"><<a href="mailto:eli@barzilay.org" target="_blank">eli@barzilay.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Jan 12, YC wrote:<br>
</div><div>> A follow-on question - what do I need to do to make the script pick<br>
> up command line arguments? I did a quick mod to print out<br>
> current-command-line-arguments and the script is not picking up the<br>
> command line args that I passed it.<br>
<br>
</div>Use<br>
<br>
exec mzscheme -it "$0" "$@"<br></blockquote></div></div></blockquote><div><br>Eli - need to trouble you one more time... it seems like with the code I can not accept option arguments
(-<x> or --<x>). It seems like they were being interpreted by mzscheme
instead of by the script. <br>
<br><div style="margin-left: 40px;">
$ ./run.ss --port 8080<br>
;; => exec mzscheme -it "./run.ss" "--port 8080"<br><b>mzscheme: bad switch: --port</b><br></div>
<b>
</b><br>
Is there a way to make mzscheme pass the option to the script, instead of interpreting it? <br>
Thanks,<br>yc<br><br><br></div></div><br>