summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-12-01 23:32:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-12-07 22:19:32 (GMT)
commit979240fee32628c317998f3c3fe2619cf01decc2 (patch)
tree7bc371cf6b37aa152da3fa48f34cb1de435a711d /parse-options.h
parentb0b3a8b666ac9bcab93c9b05ca7de918d7fa18bc (diff)
downloadgit-979240fee32628c317998f3c3fe2619cf01decc2.zip
git-979240fee32628c317998f3c3fe2619cf01decc2.tar.gz
git-979240fee32628c317998f3c3fe2619cf01decc2.tar.bz2
parse-options: make resuming easier after PARSE_OPT_STOP_AT_NON_OPTION
Introduce a PARSE_OPT_NON_OPTION state, so parse_option_step() callers can easily distinguish between non-options and other reasons for option parsing termination (like "--"). Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> 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 470bb33..3c2ec1d 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -167,6 +167,7 @@ extern NORETURN void usage_msg_opt(const char *msg,
enum {
PARSE_OPT_HELP = -1,
PARSE_OPT_DONE,
+ PARSE_OPT_NON_OPTION,
PARSE_OPT_UNKNOWN
};