RegistryOption does not show possible values with value_switches=False

John Arbash Meinel john at arbash-meinel.com
Fri Oct 26 16:36:41 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adeodato Simó wrote:
> * Aaron Bentley [Fri, 26 Oct 2007 07:47:00 -0400]:
> 
>> Adeodato Simó wrote:
>>> Hello.
> 
>>> I just noticed that if I create a RegistryOption with value_switches=False, 
>>> the help output for the command does not include a list of possible values
>>> for the option. Is this intentional?
> 
>> Yes.
> 
> I see. May I ask what the reason is, or how is it useful?
> 
> Thanks,
> 

I think if you set "value_switches=True" you get the "--foo" form, rather than
just "--format=foo" forms.

I believe Aaron generally likes the "--foo" form (bzr init --knit). I
personally prefer (bzr init --format=knit). Sometimes the value forms are a bit
ambiguous (in my opinion).

Now, you could argue that with value_switches=False it could still
automatically generate the documentation for those values. Just do it as part
of the "--format" documentation, rather than doing it as separate options.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIgmJJdeBCYSNAAMRAgzqAKCJ6DKBCMFKP09CCnnu3p1PaZugbACgjVro
kn+rQo2FeaVR1l6lVLYX7W8=
=XX4r
-----END PGP SIGNATURE-----



More information about the bazaar mailing list