Re: [racket-users] DrRacket and command line arguments

2020-04-18 Thread David Storrs
Okay, so "edit the file" is the answer. That works for me. Thanks! On Sat, Apr 18, 2020 at 2:30 PM Michael MacLeod wrote: > You can parameterize `current-command-line-arguments` like so: > > ``` > #lang racket > > (require racket/cmdline) > > (define foo (make-parameter 7)) > > (parameterize

Re: [racket-users] DrRacket and command line arguments

2020-04-18 Thread Michael MacLeod
You can parameterize `current-command-line-arguments` like so: ``` #lang racket (require racket/cmdline) (define foo (make-parameter 7)) (parameterize ([current-command-line-arguments #("--thing" "9")]) (command-line #:program "foo" #:once-each [("--thing") thing "The thing" (foo

[racket-users] DrRacket and command line arguments

2020-04-18 Thread David Storrs
Is there a way to specify command line arguments when running inside DrRacket? For example: #lang racket (define foo (make-parameter 7)) (command-line #:program "foo" #:once-each [("--thing") thing "The thing" (foo thing)] ) (displayln (foo)) If running in DrRacket, how can I make this