mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-03 22:22:08 +00:00 
			
		
		
		
	[common] option: allow short options to toggle boolean values
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user