bug#41127: [PATCH 0/2] New (ice-9 command-line-processor).

Dale Mellor <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Organization DM Bespoke Computer Solutions Ltd
Message-ID <[email protected]>
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!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.