mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-04 05:53:26 +00:00 
			
		
		
		
	ipaccess-config: Add option to disable color in log output
This commit is contained in:
		@@ -748,10 +748,11 @@ int main(int argc, char **argv)
 | 
			
		||||
			{ "software", 1, 0, 'd' },
 | 
			
		||||
			{ "firmware", 1, 0, 'f' },
 | 
			
		||||
			{ "write-firmware", 0, 0, 'w' },
 | 
			
		||||
			{ "disable-color", 0, 0, 'c'},
 | 
			
		||||
			{ 0, 0, 0, 0 },
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		c = getopt_long(argc, argv, "u:o:i:g:rn:S:U:l:hs:d:f:w", long_options,
 | 
			
		||||
		c = getopt_long(argc, argv, "u:o:i:g:rn:S:U:l:hs:d:f:wc", long_options,
 | 
			
		||||
				&option_index);
 | 
			
		||||
 | 
			
		||||
		if (c == -1)
 | 
			
		||||
@@ -812,6 +813,9 @@ int main(int argc, char **argv)
 | 
			
		||||
		case 'w':
 | 
			
		||||
			dump_files = 1;
 | 
			
		||||
			break;
 | 
			
		||||
		case 'c':
 | 
			
		||||
			log_set_use_color(stderr_target, 0);
 | 
			
		||||
			break;
 | 
			
		||||
		case 'h':
 | 
			
		||||
			print_usage();
 | 
			
		||||
			print_help();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user