commit 6156db5d46af0d1b0cf36d0719521200c0090aa7 Author: Sven Slootweg Date: Fri May 25 03:08:46 2012 +0200 Initial commit diff --git a/parse.py b/parse.py new file mode 100644 index 0000000..ecbc851 --- /dev/null +++ b/parse.py @@ -0,0 +1,9 @@ +import re, argparse, os + +parser = argparse.ArgumentParser(description='Parse a lighttpd access log.') + +parser.add_argument('logfile', metavar='logfile', type=str, nargs='+', + help='path(s) of the logfile(s)') + +args = parser.parse_args() +options = vars(args)