diff options
author | Pierre Habouzit <madcoder@debian.org> | 2008-07-08 12:34:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-09 01:33:24 -0700 |
commit | 1cc6985ca7dd3aaab0617ec0fd00d4eb0b424465 (patch) | |
tree | 2704c8317cacbb9fed72f1abb72c9d3384058c29 /parse-options.h | |
parent | 3f8d5204896a85d9268c579fc3e31b22b33fb803 (diff) | |
download | git-1cc6985ca7dd3aaab0617ec0fd00d4eb0b424465.tar.gz git-1cc6985ca7dd3aaab0617ec0fd00d4eb0b424465.tar.xz |
parse-options: add PARSE_OPT_LASTARG_DEFAULT flag
If you set this for a given option, and the optoin appears without an
argument on the command line, then the `defval' is used as its argument.
Note that this flag is meaningless in presence of OPTARG or NOARG flags.
(in the current implementation it will be ignored, but don't rely on it).
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h index c5f0b4b4d..bc317e751 100644 --- a/parse-options.h +++ b/parse-options.h @@ -28,6 +28,7 @@ enum parse_opt_option_flags { PARSE_OPT_NOARG = 2, PARSE_OPT_NONEG = 4, PARSE_OPT_HIDDEN = 8, + PARSE_OPT_LASTARG_DEFAULT = 16, }; struct option; |