From cf90b297696cee57650f4fb6c29cebe872f773a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 25 Jul 2020 11:24:34 +0300 Subject: [PATCH] extra/make-changelog: check and output usage message --- extra/make-changelog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extra/make-changelog.py b/extra/make-changelog.py index 86de1d74e05..c66b7048a61 100755 --- a/extra/make-changelog.py +++ b/extra/make-changelog.py @@ -11,6 +11,10 @@ repo = git.Repo(".") changelog = defaultdict(list) # type: Dict[str, List[str]] +if len(sys.argv) != 2: + print("Usage: %s SINCE-TAG" % __file__, file=sys.stderr) + sys.exit(2) + for id in repo.iter_commits("%s..HEAD" % sys.argv[1]): commit = repo.commit(id) if not commit.summary.startswith("Merge pull request "):