diff options
author | Dmitry Ivankov <divanorama@gmail.com> | 2011-08-11 15:15:37 +0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-11 12:18:02 -0700 |
commit | 1f275b7c4caebf8ca5c002458f0f1b7994548a97 (patch) | |
tree | 8aff642fb1457e433f58afc3d89695a9dcfe18c4 /parse-options.h | |
parent | 1421fd9df4f1e3ed232bd1c683c6e264a464a41e (diff) | |
download | git-1f275b7c4caebf8ca5c002458f0f1b7994548a97.tar.gz |
parse-options: export opterr, optbug
opterror and optbug functions are used by some of parsing routines
in parse-options.c to report errors and bugs respectively.
Export these functions to allow more custom parsing routines to use
them in a uniform way.
Signed-off-by: Dmitry Ivankov <divanorama@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.h')
-rw-r--r-- | parse-options.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h index 05eb09b878..59e0b524bd 100644 --- a/parse-options.h +++ b/parse-options.h @@ -165,6 +165,8 @@ extern NORETURN void usage_msg_opt(const char *msg, const char * const *usagestr, const struct option *options); +extern int optbug(const struct option *opt, const char *reason); +extern int opterror(const struct option *opt, const char *reason, int flags); /*----- incremental advanced APIs -----*/ enum { |