summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2007-10-15 22:32:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-10-30 04:03:31 (GMT)
commitf481e22a145ed17e85b68bf8ce2de4b80dfa4323 (patch)
treeac9ae1c08508c0802794bfdb511c6a3d85a46706 /parse-options.h
parent7f275b91520d31bfbe43ec5a9bbaf8ac6e663ce0 (diff)
downloadgit-f481e22a145ed17e85b68bf8ce2de4b80dfa4323.zip
git-f481e22a145ed17e85b68bf8ce2de4b80dfa4323.tar.gz
git-f481e22a145ed17e85b68bf8ce2de4b80dfa4323.tar.bz2
parse-options: allow callbacks to take no arguments at all.
Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'parse-options.h')
-rw-r--r--parse-options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h
index 2558e00..3a470e5 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -16,6 +16,7 @@ enum parse_opt_flags {
enum parse_opt_option_flags {
PARSE_OPT_OPTARG = 1,
+ PARSE_OPT_NOARG = 2,
};
struct option;