Code

parse-options: make resuming easier after PARSE_OPT_STOP_AT_NON_OPTION
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 1 Dec 2010 23:32:55 +0000 (17:32 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Dec 2010 22:19:32 +0000 (14:19 -0800)
commit979240fee32628c317998f3c3fe2619cf01decc2
tree7bc371cf6b37aa152da3fa48f34cb1de435a711d
parentb0b3a8b666ac9bcab93c9b05ca7de918d7fa18bc
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>
parse-options.c
parse-options.h