From: Tim Vaughan Date: Thu, 2 Jul 2020 09:05:15 +0000 (+0200) Subject: Replaced (argv) with (command-line-arguments). X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=ae35109dd6c2a686dafea77cf2f648fe85b1fafd;p=scratchy.git Replaced (argv) with (command-line-arguments). --- diff --git a/scratchy.scm b/scratchy.scm index 409047d..4258eee 100644 --- a/scratchy.scm +++ b/scratchy.scm @@ -350,9 +350,9 @@ (define (main) (let* ((progname (pathname-file (car (argv)))) (config (make-config '() '() 70 #t '() '() '() '()))) - (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)