From: Nikita Karetnikov <nikita@karetnikov.org>
To: guile-user@gnu.org
Subject: SRFI-37: option
Date: Tue, 25 Dec 2012 15:03:35 -0500 [thread overview]
Message-ID: <87zk117vby.fsf@karetnikov.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
Hello,
I have some questions about the '%options' variable. [1]
1. According to the documentation, 'option' accepts four arguments:
'names', 'required-arg?', 'optional-arg?', 'processor' and
"processor is a procedure that takes at least 3 arguments..." [2]
So why do some options (e.g., 'version') only accept a single
argument? Does it mean that the above quotation is incorrect?
2. How does 'processor' work?
For instance, 'version' creates a procedure that accepts a single
argument (i.e., 'args'), but it doesn't use that argument, does it?
3. Could you elaborate on 'list-available'?
What will happen if I run 'guix-package -A nano'? What values will
be assigned to 'opt', 'name', 'arg', and 'result'?
Nikita
[1] http://git.savannah.gnu.org/cgit/guix.git/tree/guix-package.in
[2] https://gnu.org/software/guile/manual/guile.html
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next reply other threads:[~2012-12-25 20:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-25 20:03 Nikita Karetnikov [this message]
2012-12-26 1:18 ` SRFI-37: option Daniel Hartwig
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=87zk117vby.fsf@karetnikov.org \
--to=nikita@karetnikov.org \
--cc=guile-user@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).