From: Pierre Habouzit Date: Mon, 23 Jun 2008 22:13:26 GMT Subject: Re: [PATCH] parse-opt: do not pring errors on unknown options, return -2 intead. Message-ID: <20080623221326.GG13395@artemis.madism.org> In-Reply-To: <7vd4m7hkjf.fsf@gitster.siamese.dyndns.org> On Mon, Jun 23, 2008 at 10:08:04PM +0000, Junio C Hamano wrote: > You'd need something like this on top. > > Documentation/technical/api-parse-options says that non-zero return is > used to signal an error. Oh right, like said, it's still rough on the edges :) I'm not 100% convinced by the current usage generation yet. But I'll sleep on it first. -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.org