You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
295 B
Python

12 years ago
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)