Re: [racket-users] racket -m from commandline

2022-12-17 Thread Wolfgang Hukriede
Great, thanks David, that did the trick. And someone might want to fix the "racket --help" output, if you ask me. Happy holidays! On 12/17/22, David Van Horn wrote: > You likely want to also use the -t option so that the module is required. > Here's an example: > > % cat try.rkt > > #lang

Re: [racket-users] racket -m from commandline

2022-12-17 Thread David Van Horn
You likely want to also use the -t option so that the module is required. Here's an example: % cat try.rkt #lang racket (provide main) (define (main . args) (displayln (cons "HELLO:" args))) % racket -tm try.rkt there (HELLO: there) On Sat, Dec 17, 2022 at 11:50 AM whuk...@gmail.com

[racket-users] racket -m from commandline

2022-12-17 Thread whuk...@gmail.com
racket --help says: -m, --main Call `main` with command-line arguments, print results but I cannot get this to work. All I get is main: not defined or required into the top-level environment in all (to me) conceivable variants. Could anyone provide an actually working example? Please