[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-sources] let-args, an alternative syntax for getopt-long
From: |
Jorgen 'forcer' Schaefer |
Subject: |
[Guile-sources] let-args, an alternative syntax for getopt-long |
Date: |
17 Sep 2000 06:54:49 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 |
Hi there!
Wouldn't it be cool if one could just write
(let-args (command-line)
((version)
(help)
(foo (single-char #\f)
(value #t)))
(if version
(display-version))
(if help
(display-help))
(format #t "The parameter to --foo (or -f) was ~S\n" foo))
in a program to parse the argument list? Well here comes the
implementation. I don't think i've seen a define-syntax-public,
so this isn't a module :]
HTH,
-- forcer
--
((email . "address@hidden") (www . "http://forcix.cx/")
(irc . "address@hidden (IRCnet)") (gpg . "1024D/028AF63C"))
let-args.scm
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-sources] let-args, an alternative syntax for getopt-long,
Jorgen 'forcer' Schaefer <=