* added (ikarus command-line) library that exports command-line-arguments

This commit is contained in:
Abdulaziz Ghuloum 2007-05-05 06:58:41 -04:00
parent 86320acbdf
commit 522afdf907
4 changed files with 16 additions and 15 deletions

Binary file not shown.

View File

@ -0,0 +1,14 @@
(library (ikarus command-line)
(export command-line-arguments)
(import (only (scheme) $arg-list)
(except (ikarus) command-line-arguments))
(define command-line-arguments
(make-parameter ($arg-list)
(lambda (x)
(if (and (list? x) (andmap string? x))
x
(error 'command-list
"invalid command-line-arguments ~s\n" x))))))

View File

@ -65,19 +65,4 @@
s)))
(primitive-set! 'command-line-arguments
(make-parameter ($arg-list)
(lambda (x)
(if (and (list? x) (andmap string? x))
x
(error 'command-list "invalid command-line-arguments ~s\n" x)))))
)

View File

@ -37,6 +37,8 @@
"ikarus.numerics.ss"
"ikarus.guardians.ss"
"ikarus.command-line.ss"
"ikarus.core.ss"
"libchezio.ss"
"libhash.ss"