# HG changeset patch # User Matti Hamalainen # Date 1508530834 -10800 # Node ID d5735e2cdb16c1b2f46252b6cadf82606839e59f # Parent 14b3b8dfc7972fa3d01917b29a3dc33f0974b0c3 Cosmetics. diff -r 14b3b8dfc797 -r d5735e2cdb16 log2template.pl --- a/log2template.pl Fri Oct 20 23:05:27 2017 +0300 +++ b/log2template.pl Fri Oct 20 23:20:34 2017 +0300 @@ -100,7 +100,9 @@ ); -### Options +### +### Parse commandline arguments +### while (defined(my $arg = shift)) { if ($arg eq "-d") { $opt_debug++; @@ -125,7 +127,7 @@ } else { die("Invalid option '$arg'. -Usage: $0 [options] < input.log > output.txt +Usage: $0 [options] < input.log -o Output filename. -d Enable debug mode.