[plt-scheme] MzScheme and --main
Eli Barzilay
eli at barzilay.org
Sun Jul 5 19:39:11 EDT 2009
On Jul 6, Rommel M. Martinez wrote:
> Just what I was looking for. The part that bit me was telling mzscheme
> to stop reading the arguments with "--".
This is more convenient:
#!/bin/env mzscheme
#lang scheme
(command-line
#:args file
(printf "files = ~s\n" file))
but as usual, you need to switch to the `exec' trick again if you need
any command line arguments for mzscheme itself.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
More information about the plt-scheme
mailing list