From: Ayan G. <ay...@ay...> - 2002-10-22 18:18:04
|
Hey, Try: clisp <lisp_source_file> <arg0> <arg1> ... <argN> Where if you have foo.lisp that contains: ( print *args* ) You can call foo.lisp thusly: $ clisp foo.lisp "foo" "bar" ("foo" "bar") -Ayan On 22 Oct 2002, D. Goel wrote: > Hello > > is there a way to access command line arguments from within clisp? > Else, WIBNI to provide a way? -- if so, could this be treated as a > feature-request? thanks > > In ACL, i could have dump an image and then call: > > image -- "foo" "bar" ... > > and the variable command-line-arguments was then bound to '("image" > "foo" "bar"), which made for a nice interface... > > > In clisp (2.30) , i don't seem to see a similar functionality. > > I do see an *args*, but am very confused as to its usage.. > I have tried, clisp "" "foo" "bar", hoping that arg will then be bound > to '("foo" "bar"). Instead clisp tries to look for files foo and bar > :( > > Secondly, it seems from the doc that *args* is only temporarily bound. > > Any help appreciated. > > (I am trying to port an application written in ACL to clisp, and > command-line-arguments seems to be the last stumbling block.) > > > DG http://deego.gnufans.org/~deego/ > -- > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote > _______________________________________________ > clisp-list mailing list > cli...@li... > https://lists.sourceforge.net/lists/listinfo/clisp-list > |