Re: clojure.contrib.command-line patch: multiple option format

2009-01-29 Thread Perry Trolard
Patch attached to issue at http://code.google.com/p/clojure-contrib/issues/detail?id=24 On Jan 28, 7:55 pm, Chouser wrote: > Please make the 'justify' fn (whatever you want to call it) private > for now so that it doesn't become another API to be maintained.  If it > proves to be more gener

Re: clojure.contrib.command-line patch: multiple option format

2009-01-28 Thread Chouser
On Wed, Jan 28, 2009 at 1:40 PM, Perry Trolard wrote: > > Is there anything I can do to help get the proposed change above, or > something like it, included in c.c.command-line? I'd be happy to > modify the patch: removing the somewhat orthogonal alignment code, > etc. I've been conflicted over

Re: clojure.contrib.command-line patch: multiple option format

2009-01-28 Thread Perry Trolard
Hi Chouser, Is there anything I can do to help get the proposed change above, or something like it, included in c.c.command-line? I'd be happy to modify the patch: removing the somewhat orthogonal alignment code, etc. Thanks, Perry --~--~-~--~~~---~--~~ You receiv

Re: clojure.contrib.command-line patch: multiple option format

2009-01-14 Thread Perry Trolard
A thought: if you end up using the patch, I gave the 'justify' function an inappropriate name. It should be 'align' or 'align-cols' or some such. (No one in their right mind would justify text on the console!) Perry On Jan 14, 3:16 pm, Perry Trolard wrote: > Hi Chouser, > > Thanks for checking

Re: clojure.contrib.command-line patch: multiple option format

2009-01-14 Thread Perry Trolard
Hi Chouser, Thanks for checking out the patch. > It's a good idea.  Any sane way to allow the single-letter variety to > be specified with a single leading dash, instead of a double-dash? Single or double dashes should work for both kinds of options (long- or short-style), based on your code. T

Re: clojure.contrib.command-line patch: multiple option format

2009-01-14 Thread Chouser
On Tue, Jan 13, 2009 at 8:08 PM, Perry Trolard wrote: > > Hi Chouser & list, > > I like clojure.contrib.command-line -- thanks for it! -- but I wanted > to be able to specify multiple forms for an option, e.g. --help, -h, > -?, etc. Here (in the Files section) > > http://bit.ly/fIVH > > is a pa

clojure.contrib.command-line patch: multiple option format

2009-01-13 Thread Perry Trolard
Hi Chouser & list, I like clojure.contrib.command-line -- thanks for it! -- but I wanted to be able to specify multiple forms for an option, e.g. --help, -h, -?, etc. Here (in the Files section) http://bit.ly/fIVH is a patch to enable it (the values are bound only to the first form given --