args when running from the command line
brian <briand-/[email protected]> Mon, 7 Jul 2008 22:20:18 -0700
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
It looks like you can't get command line args when running sml thusly; sml files.sml arg1 arg2 ... I assume the reason is that sml needs to know when the arglist belonging to it stops I was wondering if it would be possible to add an argumen something like --args or similar. This would then allow sml to make the args available to through the CommandLine interface. Just an idea... Yes, I know it's really not that much trouble to just build with ml- build, but for quick hacks, it would just be easier. Also I've noticed that running sml with args will leave you with the prompt, unless you do sml < file.sml Is there anyway, maybe using some os function to exit instead of entering the repl ? Brian ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08