From 6156db5d46af0d1b0cf36d0719521200c0090aa7 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 25 May 2012 03:08:46 +0200 Subject: [PATCH] Initial commit --- parse.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 parse.py 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)