From: Shawn O. Pearce Date: Wed, 01 Oct 2008 15:01:59 GMT Subject: Re: [PATCH 3/3] parse-opt: migrate builtin-merge-file. Message-ID: <20081001150159.GY21310@spearce.org> In-Reply-To: <1222841106-26148-3-git-send-email-madcoder@debian.org> Pierre Habouzit wrote: > diff --git a/builtin-merge-file.c b/builtin-merge-file.c > index 45c9853..7736fe8 100644 > --- a/builtin-merge-file.c > +++ b/builtin-merge-file.c > @@ -2,21 +2,44 @@ ... > +static int label_cb(const struct option *opt, const char *arg, int unset) > +{ > + static int label_count = 0; > + const char **names = (const char **)opt->value; > + > + if (label_count >= 3) > + return error("too many labels on the command like"); Typo on "command line". -- Shawn.