<br><br><div class="gmail_quote">On Thu, Sep 16, 2010 at 13:59, Isaiah Gilliland <span dir="ltr"><<a href="mailto:jonsulred@gmail.com">jonsulred@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I know many programs that accept input while calling the program like: "program -o option" I'd really like to use this for my next few projects but I'm not even really sure where to even look for information. I've been scouring the racket I/O docs and even the r6rs docs, but haven't found anything for this in the I/O sections. I've tried playing around with creating input ports and everything but they don't get the parameters :/<div>
I was hoping there was somebody out there that can point me in the right direction lol</div><div><br></div></blockquote><div><br>Is `<span title="Provided from: racket/base, racket"><span class="RktSym"><a class="RktValLink">current-command-line-arguments</a></span></span><span class="RktPn"></span><span class="RktPn">' what you are looking for?<br>
You can also define a `main' function which arguments are taken from the command line if you call<br>racket my-file.rkt --main arg1 arg2 ... <br><br><br>Laurent</span></div></div><br>