Jump to content

Command-line arguments: Difference between revisions

→‎{{header|Common Lisp}}: there was already a better solution in Program_name
(→‎{{header|Common Lisp}}: add a function for a univorm way to access arguments)
(→‎{{header|Common Lisp}}: there was already a better solution in Program_name)
Line 258:
<lang lisp>(defun argv ()
(or
#+SBCLclisp sb-(ext:*posix-argv*)
#+LISPWORKSsbcl systemsb-ext:*line-argumentsposix-listargv*
#+CMUclozure (cons "cmucl" extensionsccl::*command-line-words*arguments)
#+CLISPgcl (cons "clisp" extsi:*command-args*)
#+ecl (loop for i from 0 below (si:argc) collect (si:argv i))
#+cmu extensions:*command-line-strings*
#+allegro (sys:command-line-arguments)
#+lispworks sys:*line-arguments-list*
nil))</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.