Patch attached to issue at http://code.google.com/p/clojure-contrib/issues/detail?id=24
On Jan 28, 7:55 pm, Chouser <chou...@gmail.com> 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 generally useful, it can be moved to a more > approriate lib later. Sure -- I should've done that the first time. > Printing the options as --(a|b) is rather unusual and likely to be > confusing. More common appears to be like this line from "ls --help": > > -r, --reverse reverse order while sorting > > Please use something like this instead. Showing double-dashes for > each option is probably fine for now. That's indeed more readable. Done. For single-character options, I show a single dash; for others, a double-dash. > If we want to allow combining > of multiple single-letter options without spaces between them later on > (which itself has questionable value) -- well, that's a question for > another time. Yeah, the trade-off seems to be that if you allow multiple single- characer options (like, say "tar -xvf") then you must be strict about multi-character options being preceded by double-dashes (so no "java - cp", say); or, you have to parse the option arguments while aware of the semantics of each option (which doesn't sound fun or worth the work). But I do like the convenience of -xvf; the easy way to tackle it would be to expand all "-xvf"'s into "-x -v -f" & proceed as usual from there. The only change it would require is strictness about double- dashes for long-format options. In any case, hope the patch as delivered is useful. 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 -~----------~----~----~----~------~----~------~--~---