2 Customizing the Lisp Environment

2.3 Accessing command-line arguments

You can tailor the behavior of Lisp for specific applications by accessing command-line information that was provided when a Lisp image was started and by defining a function that is called before Lisp enters the top-level loop. The following constructs allow you to locate and use command-line information:


The functioncommand-line-argument returns a command-line argument that was provided when the current Lisp image was invoked.

The functionlisp-image-name returns the name of the object file that started the current invocation of Lisp.

The variable*enter-top-level-hook* can be bound to a function that is called when Lisp is started.

The Advanced User's Guide - 9 SEP 1996

Generated with Harlequin WebMaker