parseopt: add OPT_NEGBIT
commit2f4b97f91071f5060bf2da482cf8b0d70486d808
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 7 May 2009 19:44:17 +0000 (7 21:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 9 May 2009 07:28:53 +0000 (9 00:28 -0700)
treefabe7f74fafa1410676c5d15cac2de3fa93ef1ef
parent5a0e4a2a326966aabb566164a7571291e34adabd
parseopt: add OPT_NEGBIT

Add OPTION_NEGBIT and OPT_NEGBIT, mirroring OPTION_BIT and OPT_BIT.
OPT_NEGBIT can be used together with OPT_BIT to define two options
that cancel each other out.

Note: this patch removes the reminder from the test script because
it adds a test for --no-or4 and there already was one for --or4.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-parse-options.txt
parse-options.c
parse-options.h
t/t0040-parse-options.sh
test-parse-options.c