commandline arguments no lisp-files

Q&A's, tips, howto's

commandline arguments no lisp-files

Postby HPW » Mon Oct 27, 2003 9:25 pm

When you want to use commandline arguments in your lisp-processing it might be not good to try to load the parameter as lisp-files.
So disable the following code at the end of the TCL-file.

Code: Select all
foreach arg $argv {
   NewlispEvaluate "(silent (load \"$arg\"))"

To access the commandline arguments from lisp you can get the whole string through this:
Code: Select all
(tk "args")

OH, just see that it makes no problem to try to load files which are does not exists.
Posts: 1374
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany

Return to newLISP in the real world

Who is online

Users browsing this forum: joejoe and 2 guests