[PATCH]: Optional explanation for options
Martin Pool
martinpool at gmail.com
Mon Sep 12 07:04:32 BST 2005
On 12/09/05, John A Meinel <john at arbash-meinel.com> wrote:
> Sounds like you and I were thinking the same thing. Or at least
> something similar. I took one more step from you, to say that when the
> user supplies an Option, it checks to see if there is a default option
> with the same name, and pulls all the defaults from it.
Yeah, I can definitely imagine someone wanting to take a --revision
object with the usual semantics but just a different help string.
> I can see both sides, so I mostly wanted to raise it up for discussion.
Me too. But then I thought: rather than reinvent Python subclassing,
why not just use it when necessary? i.e. commonly used options like
Revision can be defined as a RevisionOption class, which can then
provide defaults.
--
Martin
More information about the bazaar
mailing list