aboutsummaryrefslogtreecommitdiffstats
path: root/parse-options.h
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-03-08 19:15:08 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-08 13:36:27 -0700
commitb92891f9783ae197bb84b90d8404ad08c3875fa1 (patch)
tree780f9dc1cd6d4dbf7a8b8f524c054ce9cf0ec7da /parse-options.h
parentb5ce3a54302cb6e29a02cd8fe4ea55eacea0a86e (diff)
downloadgit-b92891f9783ae197bb84b90d8404ad08c3875fa1.tar.gz
parseopt: add PARSE_OPT_NO_INTERNAL_HELP
Add a parseopt flag, PARSE_OPT_NO_INTERNAL_HELP, that turns off internal handling of -h, --help and --help-all. This allows the implementation of custom help option handlers or incremental parsers. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.h')
-rw-r--r--parse-options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h
index b7d08b13d1..f8ef1db128 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -22,6 +22,7 @@ enum parse_opt_flags {
PARSE_OPT_STOP_AT_NON_OPTION = 2,
PARSE_OPT_KEEP_ARGV0 = 4,
PARSE_OPT_KEEP_UNKNOWN = 8,
+ PARSE_OPT_NO_INTERNAL_HELP = 16,
};
enum parse_opt_option_flags {