parse-opt: optionally show "--no-" option string
commit86b5efb2864ca50d86437f94ec4c26042cba193e
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 27 Jul 2009 18:49:56 +0000 (27 20:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Jul 2009 14:47:38 +0000 (31 07:47 -0700)
tree3b041b273415ae2391f9e05384a2adcc19752584
parente6580020057afd207b7cfb9c96905f99e13cfe4d
parse-opt: optionally show "--no-" option string

It is usually better to have positive options, to avoid confusing double
negations.  However, sometimes it is desirable to show the negative option
in the help.

Introduce the flag PARSE_OPT_NEGHELP to do that.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c
parse-options.h