astine edited this page Sep 13, 2010 · 2 revisions
Clone this wiki locally

Unix Options
Unix Options is a library for processing Unix-style command-line arguments. Ordinary usage is as simple as specifying which variables you need to be set from the command-line.

For example:

(asdf:oos ’asdf:load-op ’unix-options)
(use-package ’unix-options)
(with-cli-options () (alpha beta delta &parameters file) (print alpha) (print beta) (print delta) (print file) (print free))

$ sample-script.lisp affile.txt —beta - file2.txt
→ T
→ T
→ “file.txt”
→ (“file2.txt”)