There's still the issue that ikarus is eating user program's arguments:
[d@eep:~/t9]-> cat command-line.sps
(import (rnrs))
(write (command-line)) (newline)
[d@eep:~/t9]-> ikarus --r6rs-script command-line.sps foo bar -b
ikarus error: option -b requires a value, none provided
ikarus -h for more help
[d@eep:~/t9]-> scheme-script command-line.sps foo bar -b
("command-line.sps" "foo" "bar" "-b")
[d@eep:~/t9]->
Also, "ikarus --r6rs-script" is allowing load files to precede "--r6rs-script" but they are ignored (same for "--compile-dependencies"). I suggest an error happen if there are load files in this case.
Unlike my previous patch, this one is less-maintenance-required for the protected "stop processing at" arguments, handles "--compile-dependencies", and errors if there are inappropriate load files.
There's still the issue that ikarus is eating user program's arguments:
[d@eep:~/t9]-> cat command-line.sps
(import (rnrs))
(write (command-line)) (newline)
[d@eep:~/t9]-> ikarus --r6rs-script command-line.sps foo bar -b
ikarus error: option -b requires a value, none provided
ikarus -h for more help
[d@eep:~/t9]-> scheme-script command-line.sps foo bar -b
("command-line.sps" "foo" "bar" "-b")
[d@eep:~/t9]->
Also, "ikarus --r6rs-script" is allowing load files to precede "--r6rs-script" but they are ignored (same for "--compile- dependencies" ). I suggest an error happen if there are load files in this case.
[d@eep:~/t9]-> ikarus oops0 oops1 --r6rs-script command-line.sps foo bar
("command-line.sps" "foo" "bar")
[d@eep:~/t9]->
Attached is a patch to fix both these things. With it:
[d@eep:~/t9]-> ikarus --r6rs-script command-line.sps foo bar -b
("command-line.sps" "foo" "bar" "-b")
[d@eep:~/t9]-> ikarus oops0 oops1 --r6rs-script command-line.sps foo bar
Unhandled exception:
Condition components:
1. &assertion
2. &who: ikarus
3. &message: "load files not allowed for --r6rs-script"
4. &irritants: ("oops0" "oops1")
[d@eep:~/t9]->
Unlike my previous patch, this one is less-maintenanc e-required for the protected "stop processing at" arguments, handles "--compile- dependencies" , and errors if there are inappropriate load files.