def METHOD_NAME():
    import argparse
    ap = argparse.ArgumentParser()
    ap.add_argument('-f', '--file', help='regex applied to file name')
    ap.add_argument('-g', '--msg', help='regex applied to message')
    ap.add_argument('-m', '--min', help='minimum log level to display')
    ap.add_argument('-L', '--always', help='log level to ALWAYS display, even if it misses other regexes')
    # TODO: --follow for `tail -f` behavior
    # TODO: time based filtering, e.g. newer than 5 minutes ago
    args = ap.parse_args()
    lf = LogFile()
    if args.file:
        lf.fileRe = re.compile(args.file, re.IGNORECASE)
    if args.msg:
        lf.messageRe = re.compile(args.msg, re.IGNORECASE)
    if args.min:
        lf.levelMin = levelToNum(args.min)
    if args.always:
        lf.levelAlways = levelToNum(args.always)
    lf.read(sys.stdin)