A parser for unix style command line options. Can act as a simple Getopt for Lisp or can automatically bind values passed in from the CLI.
|OS compatibility||Linux on x86|
Other Posix/style systems should work but aren't tested.
|Source code repository||http://github.com/astine/unix-options|
Unix-options is a small Common Lisp library for parsing unix-style command line options.
This library is very new and not widely tested so suggestions, bug-reports and patches are welcome.
An example of usage:
(print ¶meters in-file out-file)
(with-open-file (in :direction :input)
(with-open-file (out :direction :output)
(while (peek-char in)
(write-char (read-char in) out))))))
$ sample-program -p -i input.txt -o output.txt
=> write input.txt to output.txt
Full instructions can be found in the README
Please send any feedback to unix dot options (at) librelist dot com
You must be logged to add a note
You must be logged to add a comment