monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] nvm.options


From: Thomas Keller
Subject: Re: [Monotone-devel] nvm.options
Date: Tue, 10 Aug 2010 01:28:30 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5

Am 09.08.10 01:35, schrieb Timothy Brownawell:
> On 07/21/2010 06:15 PM, Thomas Keller wrote:
>> Am 21.07.10 01:10, schrieb Thomas Keller:
>>> If the compilation issue is fixed, I'll check the UI again and may come
>>> up with other little things :)
>>
>> Some more observations:
>>
>> - --verbosity changes the level between -2 and 1 (default is 0) - but I
>>    actually can't see a difference between 0 and 1. The option text for
>>    --verbose says "verbose completion output", but there is no
>>    difference between
>>
>>      $ mtn ls certs h:net.venge.monotone  (verbosity 0)
>>
>>    and
>>
>>      $ mtn --verbose ls certs h:net.venge.monotone  (verbosity 1)
>>
>>    i.e. both output
>>
>>      mtn: expanding selection 'h:net.venge.monotone'
>>      mtn: expanded to 'c36b63fe53580cdf51cd5c6afa42fc4a30a1d095'
> 
> It only affects 'complete', 'db info', and 'version' (the commands that
> take --full).
> 
> Also I think it really doesn't need to be mixed up with the (other)
> verbosity options; it controls the amount of expected output, while they
> control error/warning/debug messages. So I dropped --version and
> un-deprecated --full, and separated it from the others.

Ok, this is welcome.

>>    On a slightly related note - the option --verbose has -v as short
>>    option in many other programs I know, but --verbose and -v do
>>    have completly different meanings here - is that something we want?
>> - If I increase the verbosity to 2 or set --verbosity=2, the --debug
>>    output is shown (which is reasonable, but not yet documented in the
>>    option text)

Whats up with that? Now that --verbosity=1 has no effect on the above
mentioned commands anymore, what does 1 switch on at all? I still note
that 2 switches on the debug mode - should that now be 1?

>> - I dislike the alphabetic ordering of our global options, because they
>>    spread all the verbosity-related cruft - and we have six (!) options
>>    for that purpose now:
>>
>>      -v to increase
>>      --debug to set 2
>>      --verbose to set 1
>>      --quiet | -q to set -1
>>      --reallyquiet to set -2
>>      --verbosity to set to a number between -2 and 2
> 
> This really is a bit too many. I've dropped -v (and --verbose as above),
> and deprecated --reallyquiet in favor of --verbosity=-2. That leaves us
> with just 3 in this set (--verbosity=n, --quiet, and --debug). I think
> --quiet and --debug should probably stay, since they're somewhat standard.

This change is welcome as well. It might mitigate the next problem a bit
as well.

>>    Likewise, there are other sets of related options which would look
>>    great grouped together:
>>
>>      --key | -k / --use-default-key
>>      --keydir
>>
>>      --confdir
>>      --no-default-confdir / --allow-default-confdir
>>
>>      --rcfile / --clear-rcfiles
>>      --norc / --yesrc
>>      --nostd / --stdhooks
>>
>>      --dump
>>      --log
>>      (these two could get grouped into the verbosity-related group)
>>
>>    Is it possible to group global options further, add an empty line
>>    between each group and sort the members of a group alphabetically?
> 
> Should be doable, not sure how easy it would be. Probably this would
> mean overloading the meaning of OPTSET/OPTSET_REL a bit, to control
> formatting as well as the internal convenience and resettability
> functions they have now.

I think its a nice feature, but it shouldn't block the landing of the
branch, so decide yourself if you want to put additional effort into this.

>> - Personally I like it a bit better if the long options are broken into
>>    the next line a little earlier, i.e. not before they've taken up
>>    50% of the available space, but already if they've taken up 33%. The
>>    change is simple to do (ui.cc, desired_namewidth divided by 3, not
>>    two), so any objections against that?
> 
> That's changed.

Thanks!

Thomas.

-- 
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]