ipaccess-config: Add option to disable color in log output

This commit is contained in:
Harald Welte
2010-07-30 20:25:48 +02:00
parent 4b85a32360
commit 1ef7ce4fe8

View File

@@ -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();