Add --log-timestamps

This commit is contained in:
Ian Gulliver
2016-03-07 20:12:35 -08:00
parent 3bcc2b43ba
commit eb89dafd0d
3 changed files with 26 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ static bool parse_opts(int argc, char *argv[]) {
{"stdin", no_argument, 0, 'i'},
{"stdout", required_argument, 0, 'o'},
{"log-file", required_argument, 0, '1'},
{"log-timestamps", no_argument, 0, '2'},
{0, 0, 0, 0 },
};
@@ -153,6 +154,10 @@ static bool parse_opts(int argc, char *argv[]) {
handler = log_reopen;
break;
case '2':
handler = log_enable_timestamps;
break;
case 'h':
default:
print_usage(argv[0]);