Mercurial > hg > batmud > misc
diff log2template.pl @ 351:d5735e2cdb16 misc
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 20 Oct 2017 23:20:34 +0300 |
parents | b35c643a64d9 |
children | b80107b8a493 |
line wrap: on
line diff
--- 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 <filename> Output filename. -d Enable debug mode.