[common] option: allow short options to toggle boolean values

This commit is contained in:
Geoffrey McRae 2019-05-21 12:58:53 +10:00
parent 51ca08719e
commit 0605b7df8c
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
a12-196-gce9b94e93d+1
a12-197-g51ca08719e+1

View File

@ -301,7 +301,7 @@ bool option_parse(int argc, char * argv[])
{
if (o->type == OPTION_TYPE_BOOL)
{
option_set(o, "yes");
o->value.x_bool = !o->value.x_bool;
continue;
}
else if (o->type != OPTION_TYPE_CUSTOM)