unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] Simplifying guile-tools
@ 2011-05-08 22:18 Neil Jerram
  2011-05-08 22:18 ` [PATCH 1/5] Fix "occurrances" typos in getopt-long code and test Neil Jerram
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Neil Jerram @ 2011-05-08 22:18 UTC (permalink / raw)
  To: guile-devel

Hi there!  While we were discussing the name of guile-tools, back in
March, I wrote:

> I think I might find guile-tools (as is) less bothering if its
> built-in commands (help, version and list) were rewritten as scripts
> themselves.  Then it would be clearer that the remaining code in
> guile-tools was just implementing the main-invocation convention for
> scripts/*.

Following this email is a series of patches in this direction.  It
didn't work to try to move `help' and `version' into separate scripts
because those are given as options and not script names.  But it did
work out nicely for `list', and also I managed to simplify and enhance
(ice-9 getopt-long) such that guile-tools doesn't need to have its own
getopt variant.

The end result is that guile-tools is a lot shorter and (IMO) sweeter.

Here are the titles of the following patches.

 [PATCH 1/5] Fix "occurrances" typos in getopt-long code and test
 [PATCH 2/5] Simplify getopt-long handling of option values, esp with multiple occurrences
 [PATCH 3/5] Handle short option unclumping progressively, instead of all upfront
 [PATCH 4/5] Implement #:stop-at-first-non-option option for getopt-long
 [PATCH 5/5] Reveal guile-tools's inner simplicity...

What do you think?

Thanks,
      Neil



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-26 20:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-08 22:18 [PATCH] Simplifying guile-tools Neil Jerram
2011-05-08 22:18 ` [PATCH 1/5] Fix "occurrances" typos in getopt-long code and test Neil Jerram
2011-05-08 22:18 ` [PATCH 2/5] Simplify getopt-long handling of option values, esp with multiple occurrences Neil Jerram
2011-05-08 22:18 ` [PATCH 3/5] Handle short option unclumping progressively, instead of all upfront Neil Jerram
2011-05-08 22:18 ` [PATCH 4/5] Implement #:stop-at-first-non-option option for getopt-long Neil Jerram
2011-05-08 22:18 ` [PATCH 5/5] Reveal guile-tools's inner simplicity Neil Jerram
2011-05-09 21:43   ` Neil Jerram
2011-05-23 22:23 ` [PATCH] Simplifying guile-tools Neil Jerram
2011-05-24  7:54   ` Andy Wingo
2011-05-26 20:20     ` Neil Jerram

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).