diff options
| author | Junio C Hamano <gitster@pobox.com> | 2007-12-01 13:58:54 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2007-12-01 13:58:54 -0800 |
| commit | 5fa00a4dcf5d283c0af50b246b60977c66193c63 (patch) | |
| tree | 366a867165f16aec0c35c4c61ffaa775f5be2f79 /parse-options.h | |
| parent | c4d48ab5afc34b59582593622ef04da2543573d4 (diff) | |
| parent | 3f7dfe77b71ff0ae78923518ab5ca28b0cf4d786 (diff) | |
| download | git-5fa00a4dcf5d283c0af50b246b60977c66193c63.tar.xz | |
Merge branch 'jc/branch-contains'
* jc/branch-contains:
git-branch --contains: doc and test
git-branch --contains=commit
parse-options: Allow to hide options from the default usage.
Diffstat (limited to 'parse-options.h')
| -rw-r--r-- | parse-options.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h index a8760ac4b2..102ac31fb7 100644 --- a/parse-options.h +++ b/parse-options.h @@ -24,6 +24,7 @@ enum parse_opt_option_flags { PARSE_OPT_OPTARG = 1, PARSE_OPT_NOARG = 2, PARSE_OPT_NONEG = 4, + PARSE_OPT_HIDDEN = 8, }; struct option; @@ -57,6 +58,8 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset); * PARSE_OPT_OPTARG: says that the argument is optionnal (not for BOOLEANs) * PARSE_OPT_NOARG: says that this option takes no argument, for CALLBACKs * PARSE_OPT_NONEG: says that this option cannot be negated + * PARSE_OPT_HIDDEN this option is skipped in the default usage, showed in + * the long one. * * `callback`:: * pointer to the callback to use for OPTION_CALLBACK. |
