summaryrefslogtreecommitdiff
path: root/Documentation/technical/api-parse-options.txt
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2022-08-19 16:03:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-08-19 18:13:14 (GMT)
commit80882bc5e7143a0c3823b5a398fd76c9138437ef (patch)
treea7301f2c52411e87c71631b5280215a3f8980efc /Documentation/technical/api-parse-options.txt
parentc1b117d31ca9b09444f14092c35d092f3330823e (diff)
downloadgit-80882bc5e7143a0c3823b5a398fd76c9138437ef.zip
git-80882bc5e7143a0c3823b5a398fd76c9138437ef.tar.gz
git-80882bc5e7143a0c3823b5a398fd76c9138437ef.tar.bz2
api-parse-options.txt: fix description of OPT_CMDMODE
The description of the 'OPT_CMDMODE' macro states that "enum_val is set to int_var when ...", but it's the other way around, 'int_var' is set to 'enum_val'. Fix this. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-parse-options.txt')
-rw-r--r--Documentation/technical/api-parse-options.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/technical/api-parse-options.txt b/Documentation/technical/api-parse-options.txt
index acfd5dc..5a04f3d 100644
--- a/Documentation/technical/api-parse-options.txt
+++ b/Documentation/technical/api-parse-options.txt
@@ -236,7 +236,7 @@ There are some macros to easily define options:
`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
+ can be given by the user. `int_var` is set to `enum_val` 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`.