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 <trol...@gmail.com> wrote: > 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. The regex that looks for option > syntax is > > (re-find #"^--?(.*)" argkey) > > (optional second dash). Are you seeing it not work this way? > > Maybe you're referring to the printed help, with the "--(option|o)" > listing. I agree that it isn't that cool. Maybe dashes don't need to > be printed next to the options at all, perhaps with a short message > about single or doubles working (though that's a little clunky, > too)? > > > 'justify' is interesting. I wonder if a CL-style 'format' will end up > > in clojure-contrib after all. > > Yeah, I couldn't bear to do it w/o a bit of justification, even if > it's a little out of place in this lib (& if 'justify' isn't really > complete -- a centered option would be pretty easy to add). As for the > full CL format, it looks like Tom Faulhaber is pretty far along at > > http://github.com/tomfaulhaber/cl-format/ > > but I'm not familiar with it myself. > > Best, > Perry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---