[ditz-talk] Some work on ditz

Ohad Lutzky ohad at lutzky.net
Thu Jul 31 05:50:34 EDT 2008

On Thu, Jul 31, 2008 at 1:56 AM, William Morgan
<wmorgan-ditz at masanjin.net> wrote:
> Reformatted excerpts from Ohad Lutzky's message of 2008-07-30:
>> I'm not sure having one hash for both global and subcommand options would
>> work well. For example, you'll want the following two commands to behave
>> differently:
>>   ditz -v commit ditz-1         # Be verbose about ditz's initialization
>>   ditz commit -v ditz-1         # Add patchlog to commit-message buffer
> As long as the long forms of the two -v options were different, trollop
> would turn them into different hash keys.  It's only when the long forms
> conflict that it's a problem. Is it reasonable for a subcommand to have
> an option whose long form conflicts with a global option? I kinda think
> not (I can imagine unreasonable cases, but not reasonable ones), but I'm
> not sure.

Well, in that example, I'd say both flags should be called --verbose.
I wouldn't really want to have --verbose-ditz-messages or

> --
> William <wmorgan-ditz at masanjin.net>
> _______________________________________________
> ditz-talk mailing list
> ditz-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ditz-talk

Man is the only animal that laughs and weeps, for he is the only
animal that is struck with the difference between what things are and
what they ought to be.
 - William Hazlitt

Ohad Lutzky

More information about the ditz-talk mailing list