From: Dale Mellor <guile-qf1qmg@rdmp.org>
To: 41127@debbugs.gnu.org
Subject: bug#41127: [PATCH 0/2] New (ice-9 command-line-processor).
Date: Thu, 07 May 2020 13:24:39 +0100 [thread overview]
Message-ID: <9066a0d4437b09b02aa12c3d91dcefd607aa1e03.camel@rdmp.org> (raw)
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!
next reply other threads:[~2020-05-07 12:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 12:24 Dale Mellor [this message]
2020-05-07 16:30 ` bug#41127: [PATCH 1/2] Introduce (ice-9 command-line-processor) module Dale Mellor
2020-05-07 16:33 ` bug#41127: [PATCH 2/2] doc: Explain the *command-line-processor* module in texinfo Dale Mellor
2020-06-07 21:42 ` bug#41127: GIT and GUIX downloads available Dale Mellor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9066a0d4437b09b02aa12c3d91dcefd607aa1e03.camel@rdmp.org \
--to=guile-qf1qmg@rdmp.org \
--cc=41127@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).