help="Limit the comments output to ones more recent than a specific date.")
parser.add_argument("--before", metavar="DATE",
help="Limit the comments output to ones older than a specific date.")
+parser.add_argument("--author", metavar="PATTERN", action="append",
+ help="Limit the comments output to ones that were created by user matching PATTERN. Can be used multiple times.")
class CFormatter(string.Formatter):
def __init__(self):
if args.before:
cmd += ["--before", args.before]
+if args.author:
+ for pattern in args.author:
+ cmd += ["--author", pattern]
+
rv, out, err = mrlib.run(cmd, stdin=stdin)
c2m = mrlib.comments2mrs(refs, mrs)