]> mj.ucw.cz Git - libucw.git/commit
Opt: Improved parsing of negative boolean options
authorMartin Mares <mj@ucw.cz>
Mon, 17 Feb 2014 17:41:33 +0000 (18:41 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 17 Feb 2014 17:41:33 +0000 (18:41 +0100)
commit760ae9e3a01c7dee03bb57d5dbdbeaa3b0670735
tree277a3ea9d55b3982d1566d0b32dcaf5fb81c7cde
parent0cd1a8b586cd645fb304556814e496fe075450b2
Opt: Improved parsing of negative boolean options

Boolean options with the OPT_NEGATIVE flag, which are named "no-X",
are also recognized as bare "X" with positive meaning.

Include tests for processing of both positive and negative bools.
ucw/opt-test.c
ucw/opt.c
ucw/opt.t