|
From: | Peter Wiehe |
Subject: | Re: [MIT-Scheme-devel] Newbie: Compiling and commandline args |
Date: | Wed, 15 May 2019 22:57:31 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Am 15.05.19 um 14:22 schrieb Aaron S. Hawley:
On Wed, May 15, 2019 at 7:14 AM Peter Wiehe<address@hidden> wrote:How do I access the commandline arguments? argv, *ARGV* and ext:*ARGV* don't work. I get the error "Unbound variable" (when I type "scheme --load myprog.scm").The procedure for retrieving command-line arguments with --load is called `command-line-arguments'. https://www.gnu.org/software/mit-scheme/documentation/mit-scheme-user/Command_002dLine-Options.html
Thank you very much, but I unsuccessfully tried the following: ------------------------- (define inputfile 0) (set! inputfile (open-input-file (car (command-line-arguments)))) ------------------------ What is the correct usage of command-line-arguments? Thanks in advance Peter
[Prev in Thread] | Current Thread | [Next in Thread] |