| author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
| Mon, 27 Jul 2009 18:49:56 +0000 (20:49 +0200) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Fri, 31 Jul 2009 14:47:38 +0000 (07:47 -0700) | ||
| commit | 86b5efb2864ca50d86437f94ec4c26042cba193e | |
| tree | 3b041b273415ae2391f9e05384a2adcc19752584 | tree | snapshot |
| parent | e6580020057afd207b7cfb9c96905f99e13cfe4d | commit | diff |
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>
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 | diff | blob | history | |
| parse-options.h | diff | blob | history |