--script now passes the script name as a first argument to command-line-arguments
This commit is contained in:
parent
2fdaf456f8
commit
e32a8cc972
BIN
lib/ikarus.boot
BIN
lib/ikarus.boot
Binary file not shown.
|
@ -71,15 +71,16 @@
|
||||||
(let-values ([(f* script a*) (f (cdr args))])
|
(let-values ([(f* script a*) (f (cdr args))])
|
||||||
(values (cons (car args) f*) script a*))]))])
|
(values (cons (car args) f*) script a*))]))])
|
||||||
(current-eval compile)
|
(current-eval compile)
|
||||||
(command-line-arguments args)
|
|
||||||
(cond
|
(cond
|
||||||
[script ; no greeting, no cafe
|
[script ; no greeting, no cafe
|
||||||
|
(command-line-arguments (cons script args))
|
||||||
(for-each load files)
|
(for-each load files)
|
||||||
(load script)
|
(load script)
|
||||||
(exit 0)]
|
(exit 0)]
|
||||||
[else
|
[else
|
||||||
(printf "Ikarus Scheme (Build ~a)\n" (compile-time-date-string))
|
(printf "Ikarus Scheme (Build ~a)\n" (compile-time-date-string))
|
||||||
(display "Copyright (c) 2006 Abdulaziz Ghuloum\n\n")
|
(display "Copyright (c) 2006 Abdulaziz Ghuloum\n\n")
|
||||||
|
(command-line-arguments args)
|
||||||
(for-each load files)
|
(for-each load files)
|
||||||
(new-cafe)]))
|
(new-cafe)]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue