Modelled after GNU libc's argp command-line parser, and building on
(ice-9 getopt-long), this new module allows a one-stop specification
of how the command line options should work,

   (process-command-line  (command-line)
       application  "my-app"
       version      "1.0"
       usage        "[OPTION]..."
       license      GPLv3
       option  (--option=3 -o "demonstration option"))

and then the program gets variables with names like --option which convey
the state of the command line,

   (cond (--option  =>  (lambda (o) (display "The option value is ")
                                    (display o)
                                    (newline)))

and as a side-effect --help, --version and --usage are dealt with
automatically!





Reply via email to