Skip to content

Commit cf90b29

Browse files
committed
extra/make-changelog: check and output usage message
1 parent cc697a6 commit cf90b29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extra/make-changelog.py

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
repo = git.Repo(".")
1212
changelog = defaultdict(list) # type: Dict[str, List[str]]
1313

14+
if len(sys.argv) != 2:
15+
print("Usage: %s SINCE-TAG" % __file__, file=sys.stderr)
16+
sys.exit(2)
17+
1418
for id in repo.iter_commits("%s..HEAD" % sys.argv[1]):
1519
commit = repo.commit(id)
1620
if not commit.summary.startswith("Merge pull request "):

0 commit comments

Comments
 (0)