Getting command line arguments in Common Lisp

yoktur picture yoktur · Jun 20, 2009 · Viewed 12.9k times · Source

How can I get the command line arguments in (specifically in GNU, if there are any differences) Common Lisp?

Answer

mog picture mog · Jun 20, 2009

http://cl-cookbook.sourceforge.net/os.html provides some insight

  (defun my-command-line ()
  (or 
   #+CLISP *args*
   #+SBCL *posix-argv*  
   #+LISPWORKS system:*line-arguments-list*
   #+CMU extensions:*command-line-words*
   nil))

is what you are looking for, I think.