]> git.ipfire.org Git - thirdparty/git.git/commitdiff
api-parse-options.txt: fix description of OPT_CMDMODE
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 19 Aug 2022 16:03:56 +0000 (18:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 18:13:14 +0000 (11:13 -0700)
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>
Documentation/technical/api-parse-options.txt

index acfd5dc1d8b2f6103ddb556956b63f71b83a4d1b..5a04f3daecd5a29b3f08d93e16c9ef09c063ecfe 100644 (file)
@@ -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`.