help="Read revs for previously read comments from FILE (default: $HOME/.gimrr/comment.revs).")
parser.add_argument("-n", "--new-only", action="store_true",
help="List only new comments.")
+parser.add_argument("--after", metavar="DATE",
+ 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.")
class CFormatter(string.Formatter):
def __init__(self):
if args.regexp_ignore_case:
cmd += ["--regexp-ignore-case"]
+if args.after:
+ cmd += ["--after", args.after]
+
+if args.before:
+ cmd += ["--before", args.before]
+
rv, out, err = mrlib.run(cmd, stdin=stdin)
c2m = mrlib.comments2mrs(refs, mrs)