From: Tim Vaughan Date: Thu, 2 Jul 2020 09:02:44 +0000 (+0200) Subject: Replace (argv) with (command-line-arguments). X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=6fe28e50b09da3f2ca425ddb95ca7d2c7904225b;p=rags.git Replace (argv) with (command-line-arguments). --- diff --git a/rags.scm b/rags.scm index b60a121..ef4726f 100644 --- a/rags.scm +++ b/rags.scm @@ -235,9 +235,9 @@ (define (main) (let* ((progname (pathname-file (car (argv)))) (config (make-config #f #f 1965 #f #f #f #f))) - (if (null? (cdr (argv))) + (if (null? (command-line-arguments)) (print-usage progname) - (let loop ((args (cdr (argv)))) + (let loop ((args (command-line-arguments))) (let ((this-arg (car args)) (rest-args (cdr args))) (if (string-prefix? "-" this-arg)