newlisp arguments and interactive mode
Posted: Mon Nov 28, 2005 8:21 am
Suppose the file test.lsp is:
When I run
c:\> newlisp test.lsp somefile.txt
newlisp executes test.lsp, then trying to execute somefile.txt and gots an error.
Is there a way to tell in test.lsp that interacrive mode should be invoked w/o interpreting next cmdline arguments?
Code: Select all
(set 's (parse (read-file (main-args 2))))
c:\> newlisp test.lsp somefile.txt
newlisp executes test.lsp, then trying to execute somefile.txt and gots an error.
Is there a way to tell in test.lsp that interacrive mode should be invoked w/o interpreting next cmdline arguments?