diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-04-14 18:37:13 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-14 18:37:13 -0700 |
commit | 48adfa18bc5c865d72cb9a5d0f2a875d282dafb1 (patch) | |
tree | 054c2d2423bc2c76248dc3e7a2818e6887cecad1 /Documentation/technical | |
parent | f0acaa6b1cea3acd0b7bd137ee7b74d90f2946f5 (diff) | |
parent | c3f6b853bfafa2046f2c6b0b9661d284436900b6 (diff) | |
download | git-48adfa18bc5c865d72cb9a5d0f2a875d282dafb1.tar.gz git-48adfa18bc5c865d72cb9a5d0f2a875d282dafb1.tar.xz |
Merge branch 'pb/opt-cmdmode-doc' into maint
Minor API documentation update.
* pb/opt-cmdmode-doc:
api-parse-options.txt: document OPT_CMDMODE()
Diffstat (limited to 'Documentation/technical')
-rw-r--r-- | Documentation/technical/api-parse-options.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/technical/api-parse-options.txt b/Documentation/technical/api-parse-options.txt index 5f0757dcc..695bd4bf4 100644 --- a/Documentation/technical/api-parse-options.txt +++ b/Documentation/technical/api-parse-options.txt @@ -231,6 +231,13 @@ There are some macros to easily define options: pass the command-line option, which can be specified multiple times, to another command. +`OPT_CMDMODE(short, long, &int_var, description, enum_val)`:: + Define an "operation mode" option, only one of which in the same + group of "operating mode" options that share the same `int_var` + can be given by the user. `enum_val` is set to `int_var` when the + option is used, but an error is reported if other "operating mode" + option has already set its value to the same `int_var`. + The last element of the array must be `OPT_END()`. |