From: Pierre Habouzit Date: Sat, 15 Dec 2007 11:03:11 GMT Subject: Re: [RFH] convert shortlog to use parse_options Message-ID: <20071215110311.GA11321@artemis.madism.org> In-Reply-To: <7v63z1qakt.fsf@gitster.siamese.dyndns.org> On ven, déc 14, 2007 at 08:34:58 +0000, Junio C Hamano wrote: > Pierre Habouzit writes: > > > On Fri, Dec 14, 2007 at 05:59:52AM +0000, Junio C Hamano wrote: > >> git cmd --abbrev=10 -n=4 > > > > actually -n=4 isn't understood atm, only -n4 and -n 4 are. > > Ah, my mistake. And I do not think accepting -n=4 is a good idea (it is > not historically done). > After thinking about it a bit more, I think I was worried too much about > burdening the users to remember the differences between options with, > without and optional option-arguments [*1*]. They need to know the > difference between options with and without option-arguments already > because single letter options can be combined if they are without > option-arguments, and they have to write "shortlog -new72" but not > "shortlog -wen72". If they want to be extra sure, they can be more > explicit and say "shortlog -n -e -w72". Yep, let's do it then. Note that's the reason why I felt we need a manual page about this, because we should give some guidelines of what is safe for scripting. -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.org