mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-07 03:59:52 +00:00
[common] option: allow short options to toggle boolean values
This commit is contained in:
parent
51ca08719e
commit
0605b7df8c
2
VERSION
2
VERSION
@ -1 +1 @@
|
|||||||
a12-196-gce9b94e93d+1
|
a12-197-g51ca08719e+1
|
@ -301,7 +301,7 @@ bool option_parse(int argc, char * argv[])
|
|||||||
{
|
{
|
||||||
if (o->type == OPTION_TYPE_BOOL)
|
if (o->type == OPTION_TYPE_BOOL)
|
||||||
{
|
{
|
||||||
option_set(o, "yes");
|
o->value.x_bool = !o->value.x_bool;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (o->type != OPTION_TYPE_CUSTOM)
|
else if (o->type != OPTION_TYPE_CUSTOM)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user