[racket] Passing command-line parameters *into* Scribble

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Dec 10 08:31:09 EST 2013

I agree that "--" won't work. A "--" can keep flag-shaped arguments
from being interpreted as flags, but it doesn't hide non-flag arguments
in any way.

I think it makes sense to add a way to pass command-line arguments to
documents via `raco scribble`. Meanwhile, a possible workaround is to
write your own wrapper that uses `scribble/render`.

At Tue, 10 Dec 2013 22:27:14 +1100, Daniel Prager wrote:
> Hi Laurent
> 
> Thanks for the tip on omitting raco.
> 
> Unfortunately I don't get the desired behavior: "--" seems to get
> interpreted as a file:
> 
> *> scribble --pdf test.scrbl -- param1*
> default-load-handler: cannot open input file
>   path: /Users/dan/racket/--
>   system error: No such file or directory; errno=2
>   context...:
>    standard-module-name-resolver
>    /Applications/Racket
> v5.3.6/collects/scribble/../racket/private/map.rkt:26:19: loop
>    /Applications/Racket v5.3.6/collects/scribble/run.rkt: [running body]
> 
> Racket version is 5.3.6, and the "--" trick works fine when running racket
> itself from the command-line.
> 
> 
> Dan
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.