mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[common] option: allow short options to toggle boolean values
This commit is contained in:
parent
51ca08719e
commit
0605b7df8c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user