ISSUE_PROJECT="i2"
arg_parser = ArgumentParser(description= "%s (Version: %s)" % (DESCRIPTION, VERSION))
-arg_parser.add_argument('-V', '--version', type=str, help="define version to query")
+arg_parser.add_argument('-V', '--version', required=True, type=str, help="define version to query")
arg_parser.add_argument('-p', '--project', type=str, help="add urls to issues")
arg_parser.add_argument('-l', '--links', action='store_true', help="add urls to issues")
arg_parser.add_argument('-H', '--html', action='store_true', help="print html output (defaults to markdown)")
return "* {0} [{1}]({3}{1} \"{0} {1}\"): {2}".format(log_entry[0], log_entry[1], log_entry[2], issue_url)
else:
if args.html:
- return "<li>{0} <a href=\"{3}{1}\">{1}</a>: {2}</li>".format(log_entry[0], log_entry[1], log_entry[2], issue_url)
+ return "<li>%s %d: %s</li>" % log_entry
else:
- return "* {0} [{1}]({3}{1} \"{0} {1}\"): {2}".format(log_entry[0], log_entry[1], log_entry[2], issue_url)
+ return "* %s %d: %s" % log_entry
version_name = args.version
changes = string.join(string.split(changes, "\r\n"), "\n")
-print format_header("What's New in Version %s" % (version_name), 2)
+print format_header("What's New in Version %s" % (version_name), 3)
print ""
if changes:
- print format_header("Changes", 3)
+ print format_header("Changes", 4)
print ""
print changes
print ""