summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2008-06-23 20:38:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-30 21:51:12 (GMT)
commitff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee (patch)
tree725576baaafedf22e88137aa3b8c25f977204e99 /parse-options.h
parentee68b87a62a245fca46374fe5132aec58d802baa (diff)
downloadgit-ff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee.zip
git-ff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee.tar.gz
git-ff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee.tar.bz2
parse-opt: create parse_options_step.
For now it's unable to stop at unknown options, this commit merely reorganize some code around. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.h')
-rw-r--r--parse-options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h
index f66ca35..33c683c 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -133,6 +133,10 @@ extern int parse_options_usage(const char * const *usagestr,
extern void parse_options_start(struct parse_opt_ctx_t *ctx,
int argc, const char **argv, int flags);
+extern int parse_options_step(struct parse_opt_ctx_t *ctx,
+ const struct option *options,
+ const char * const usagestr[]);
+
extern int parse_options_end(struct parse_opt_ctx_t *ctx);