PrologScript with SWI 6.5.2

Steve Prior <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
I'm trying to move PrologScript code from SWI 6.4.1 to 6.5.2 and though I've 
seen in the changelog that command line handling has changed I'm having trouble 
figuring out what changes to make.  The following code seems to do exactly what 
the current documentation from the SWI website does, but it doesn't work:

sprior@ubuntu:~/plindexer$ cat foo
#!/home/sprior/bin/swipl -q -t main -f

main :-
         write('hello there\n'),
         halt.
sprior@ubuntu:~/plindexer$ ./foo
produces a SWI Prolog usage message.


Can someone clue me in?

Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.