I recently switched to SWI-Prolog version 8 (8.0.3), it looks like a few things happened with command line processing. My scripts that previously accepted -c
as an option no longer accept this. It looks like this is being interpreted directly by swipl and not passed to my program.
this can be seen with the following:
footest:
#!/usr/bin/env swipl
:- initialization main.
main(Argv):-
writeln(Argv),
halt.
as expected:
$ footest -a foo.yaml
[-a,foo.yaml]
however:
$ footest -c foo.yaml
ERROR: source_sink `'foo.yaml'' does not exist
Same thing for -x
.
It’s not clear if this is intentional or if there is any way I can get my -c
option back, without writing some kind of wrapper script?