diff options
author | Pierre Habouzit <madcoder@debian.org> | 2008-06-23 22:38:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-30 14:51:12 -0700 |
commit | ff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee (patch) | |
tree | 725576baaafedf22e88137aa3b8c25f977204e99 /parse-options.h | |
parent | ee68b87a62a245fca46374fe5132aec58d802baa (diff) | |
download | git-ff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee.tar.gz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h index f66ca352dc..33c683cb54 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); |