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

Previous Next

Package: guile;

Reported by: Dale Mellor <guile-qf1qmg <at> rdmp.org>

Date: Thu, 7 May 2020 15:42:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Dale Mellor <guile-qf1qmg <at> rdmp.org>
To: 41127 <at> debbugs.gnu.org
Subject: bug#41127: [PATCH 0/2] New (ice-9 command-line-processor).
Date: Thu, 07 May 2020 13:24:39 +0100
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!






This bug report was last modified 5 years and 7 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.