newLISP Fan Club

Forum => newLISP in the real world => Topic started by: HPW on October 27, 2003, 01:25:43 PM

Title: commandline arguments no lisp-files
Post by: HPW on October 27, 2003, 01:25:43 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.


foreach arg $argv {
NewlispEvaluate "(silent (load "$arg"))"
}


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

OH, just see that it makes no problem to try to load files which are does not exists.