diff options
Diffstat (limited to 'parse-options.h')
-rw-r--r-- | parse-options.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h index 72027f3c66..f66ca352dc 100644 --- a/parse-options.h +++ b/parse-options.h @@ -113,6 +113,12 @@ extern NORETURN void usage_with_options(const char * const *usagestr, /*----- incremantal advanced APIs -----*/ +enum { + PARSE_OPT_HELP = -1, + PARSE_OPT_DONE, + PARSE_OPT_UNKNOWN, +}; + struct parse_opt_ctx_t { const char **argv; const char **out; @@ -121,6 +127,9 @@ struct parse_opt_ctx_t { int flags; }; +extern int parse_options_usage(const char * const *usagestr, + const struct option *opts); + extern void parse_options_start(struct parse_opt_ctx_t *ctx, int argc, const char **argv, int flags); |