[racket-dev] wishes
Three minutes ago, Kevin Tew wrote:
> racket -tm some_module.rkt runs the main function in some_module.rkt.
> with the command-line arguments
(A trickiness with that is the fact that `main' should receive command
line arguments so composing multiple `main's is not straightforward.)
> Welcome to Racket v5.1.1.4.
> racket [<option> ...] <argument> ...
> File and expression options:
> -t <file>, --require <file> : Like -e '(require (file "<file>"))'
> -m, --main : Call `main' with command-line arguments, print results
>
> I would like racket -tM some_module.rkt some_function to run
> some_function in the same manner as -tm runs main.
> e.g.
> racket -tM my_module.rkt main
> racket -tM my_module.rkt core-tests
> racket -tM my_module.rkt tests
Sounds useful (emacs has a similar `-f' flag, for example), but still
a bit too much.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!