[racket-users] How can I build up the #:usage-help string dynamically in racket lang's (command-line …) function?

2016-01-17 Thread Pieter Breed
Hi All, (I'm cross-posting this from StackOverflow) http://stackoverflow.com/q/34837318/24172 I have this code: (define s1 "aoeu") (define command (command-line #:usage-help s1 #:args (op) op)) It fails with "command-line: #:usage-help clause contains non-string." If I replace the

Re: [racket-users] How can I build up the #:usage-help string dynamically in racket lang's (command-line …) function?

2016-01-17 Thread Jon Zeppieri
I think you'll need to use parse-command-line, instead of command-line. -J On Sun, Jan 17, 2016 at 7:51 AM, Pieter Breed wrote: > Hi All, > > (I'm cross-posting this from StackOverflow) > http://stackoverflow.com/q/34837318/24172 > > I have this code: > > (define s1