Directory | Tags | Index | LinkIt | Submit   | Help
    Saturday, 26 July 2014 - anonymous
Login/Register to vote and to have access to more features

You are here: Root > By Topic > Utilities

View the dependency graph for this library

Unix-Style CLI Option Parser
Created by astine on: Mon, 09 Nov 2009 20:58:33 GMT, Last modification: Tue, 09 Feb 2010 19:38:40 GMT

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.

eMaililluminati@beggersandbuskers.com
Web sitehttp://github.com/astine/unix-options
Mailing listunix.options@librelist.com
Version0.2.4 -
MaturityAlpha
OS compatibilityLinux on x86
Other Posix/style systems should work but aren't tested.
ASDF installableYes
Official Downloadhttp://www.beggersandbuskers.com/unix-options.tar.gz
Mirrored Download
Source code repositoryhttp://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:

(with-cli-options ()
    (print ¶meters in-file out-file)
  (if print
    (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

Compatible Implementations

LispWorks | Allegro Common Lisp | OpenMCL | CLISP | SBCL

Required Libraries  View graph

FiveAM | ASDF

Required by these libraries

evol

Tags

Utilities | Parsers | ASDF installable | Unix family

0 Notes and 0 comments

0 Notes

You must be logged to add a note


0 Comments

You must be logged to add a comment