Skip to content

Commit 8fdfaf0

Browse files
committed
Merge branch 'pb/opt-cmdmode-doc'
Minor API documentation update. * pb/opt-cmdmode-doc: api-parse-options.txt: document OPT_CMDMODE()
2 parents 11cfcc5 + c3f6b85 commit 8fdfaf0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/technical/api-parse-options.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ There are some macros to easily define options:
231231
pass the command-line option, which can be specified multiple times,
232232
to another command.
233233

234+
`OPT_CMDMODE(short, long, &int_var, description, enum_val)`::
235+
Define an "operation mode" option, only one of which in the same
236+
group of "operating mode" options that share the same `int_var`
237+
can be given by the user. `enum_val` is set to `int_var` when the
238+
option is used, but an error is reported if other "operating mode"
239+
option has already set its value to the same `int_var`.
240+
234241

235242
The last element of the array must be `OPT_END()`.
236243

0 commit comments

Comments
 (0)