aboutsummaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2008-06-23 22:38:58 +0200
committerJunio C Hamano <gitster@pobox.com>2008-06-30 14:51:12 -0700
commitff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee (patch)
tree725576baaafedf22e88137aa3b8c25f977204e99 /parse-options.h
parentee68b87a62a245fca46374fe5132aec58d802baa (diff)
downloadgit-ff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee.tar.gz
git-ff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee.tar.xz
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 f66ca352d..33c683cb5 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);