def parse_commit_message(args):
    reg = re.compile(
        r"(\-\w*m\w*|\-\-message)(\s*|(='(?:\\.|[^'])*'|\"(?:\\.|[^\"])*\"))")
    scan = [index for index, val in enumerate(args) 
        for mat in [reg.search(val)] if mat]
    if not scan:
        return False
    if len(scan) > 1:
        fprintf("GITIME ERROR: Your commit contains more than one message. "
            "Your commit was NOT made. Try again.", file=sys.stderr)
        sys.exit()
    index = scan[0]
    # check if the format is `--message="some message"`
    format_reg = re.search(r"='((\\.|[^'])*?)'|\"((\\.|[^\"])*?)\"", 
        args[index])
    if format_reg is not None:
        return format_reg.group().strip('=').strip('"').strip("'")
    elif len(args) < index + 2:
        fprintf("GITIME ERROR: Your commit doesn't contain a message. Your "
            "commit was NOT made. Try again.", file=sys.stderr)
        sys.exit()
    else:
        ret = args[index + 1]
        # escape unescaped quotes so that we can add quotes around the message
        args[index + 1] = re.sub(r'(?<!\\)(?:\\\\)*"', '\\"', args[index + 1])
        # add quotes to the message so that git can understand it 
        # when the command is run
        args[index + 1] = "".join(['"', args[index + 1], '"'])
        return ret
Add command line arguments for configuring traceback module
dataset/ETHPy150Open jongoodnow/gitime/gitime/commit.py/parse_commit_message--crossover with--dataset/ETHPy150Open aliles/begins/begin/extensions.py/Tracebacks.add_arguments