From: Magnus Jacobsson Date: Fri, 14 Aug 2020 09:58:18 +0000 (+0200) Subject: Add --collection option X-Git-Tag: 2.46.0~20^2^2~123^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f94e91ba819cef51a4b9dcb2d76153684d06a913;p=graphviz Add --collection option --- diff --git a/gen_version.py b/gen_version.py index 35679bfb8..bc4c11d96 100644 --- a/gen_version.py +++ b/gen_version.py @@ -48,6 +48,11 @@ parser.add_argument('--committer-date-graphviz', help='Print graphviz special formatted committer date in UTC ' 'instead of version' ) +parser.add_argument('--collection', + action='store_true', + help='Print collection ("stable" or "development") ' + 'instead of version' +) args = parser.parse_args() @@ -87,6 +92,8 @@ if not patch_version.isnumeric() or args.date_format: if args.date_format: print(committer_date) +elif args.collection: + print(collection) else: if not patch_version.isnumeric(): # Non-numerical patch version; add committer date