winpr/utils: allow COMMAND_LINE_VALUE_{OPTIONAL,BOOL} to coexist.
authorSimon Tatham <anakin@pobox.com>
Wed, 18 Mar 2020 21:00:06 +0000 (21:00 +0000)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000 (09:51 +0100)
commit818480be91491d05e88d893780c411188a9aac1e
treef7530480a2820d0eb8742614a35ae132f67af24a
parent04fd010402624ba8baf4d333a6499fc1ad1333a0
winpr/utils: allow COMMAND_LINE_VALUE_{OPTIONAL,BOOL} to coexist.

Now you can give an option the combination of flags
COMMAND_LINE_VALUE_OPTIONAL and COMMAND_LINE_VALUE_BOOL. If you do,
then all three of the syntaxes +foo, -foo and /foo:value are allowed
at once, and the receiving code can tell the difference because the
Value field is set to BoolValueTrue, BoolValueFalse or a valid char
pointer.

(cherry picked from commit 22c6b375d4ae9bf9dcac74d3360d0042673f1353)
client/X11/generate_argument_docbook.c
winpr/libwinpr/utils/cmdline.c