[PATCH 2 of 2 STABLE] mq: rename the --mq option to --queue

Brendan Cully brendan at kublai.com
Thu Mar 4 16:36:45 CST 2010


On Thursday, 04 March 2010 at 16:30, Augie Fackler wrote:
> >>I prefer --mq, and that's a bit part of it. I'd rather type --mq than
> >>-Q, because it lets me avoid a chord.
> >
> >I'm sorry, but I don't understand? By chord, do you mean key press?
> >There are actually *fewer* key presses in ‘-Q’, and the amount of
> >different keys pressed is the same:
> 
> By chord he means multiple keys at once. Also, repeated keys are free.
> 
> I'm also +1 on --mq instead of -Q because it's significantly faster
> for me to type.
> 
> >-Q:   <dash> <shift> <Q>
> >--mq: <dash> <dash> <M> <Q>
> >
> >In my opinion ‘--mq’ is an abuse of long options; after all, the
> >reason they're called ‘long’ is that they aren't supposed to be
> >short. For example, they are useful in scripts or aliases, so you
> >don't have to remember what each and every short option means.

Since the extension is called 'mq' (e.g., --config extensions.mq=), I
think it's a fine, intuitive identifier. I don't think long options
should have a mandatory minimum number of letters.

> >If people dislike the short option, shouldn't we fix *that* rather
> >than working around it?
> 
> Likely no, since --mq is easy and fast to type, and short options are
> fairly expensive (only 26 lowercase ones, so they should really be
> reserved for non-poweruser features).

+1. Personally, I'd be happy to see -Q removed and just have --mq.


More information about the Mercurial-devel mailing list