[plt-scheme] MzScheme and --main

From: Eli Barzilay (eli at barzilay.org)
Date: 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
   #: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!

Posted on the users mailing list.