[plt-scheme] MzScheme and --main
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!