On Sun, Oct 14, 2007 at 06:02:33PM +0000, Johannes Schindelin wrote:
quoted text > Hi,
>=20
> On Sun, 14 Oct 2007, Johannes Schindelin wrote:
>=20
> > When there is an option "--amend", the option parser now recognizes=20
> > "--am" for that option, provided that there is no other option beginnin=
g=20
quoted text > > with "--am".
>=20
> And an amend for ultra-abbreviated options (as you noticed on IRC):
>=20
> diff --git a/parse-options.c b/parse-options.c
> index afc6c89..acabb98 100644
> --- a/parse-options.c
> +++ b/parse-options.c
> @@ -137,6 +137,11 @@ is_abbreviated:
> abbrev_flags =3D flags;
> continue;
> }
> + /* negated and abbreviated very much? */
> + if (!prefixcmp("no-", arg)) {
> + flags |=3D OPT_UNSET;
> + goto is_abbreviated;
> + }
> /* negated? */
> if (strncmp(arg, "no-", 3))
> continue;
squashed on top on the previous, and pushed to my ph/parseopt branch.
--=20
=C2=B7O=C2=B7 Pierre Habouzit
=C2=B7=C2=B7O madcoder@debia=
n.org
OOO
http://www.madism.org