From 48c317f07bf6f4f1c0d4190e47a2d394d3d74090 Mon Sep 17 00:00:00 2001 From: Derek DeJonghe Date: Mon, 15 Jun 2020 10:44:19 -0400 Subject: [PATCH] add extra flags --- semver/get_version.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/semver/get_version.py b/semver/get_version.py index 0535a67..38f659c 100644 --- a/semver/get_version.py +++ b/semver/get_version.py @@ -64,6 +64,10 @@ def main(): parser = argparse.ArgumentParser(description='Get Version or Branch.') parser.add_argument('-d','--dot', help='Switch out / for . to be used in docker tag', action='store_true', dest='dot') parser.add_argument('-D', '--debug', help='Sets logging level to DEBUG', action='store_true', dest='debug', default=False) + parser.add_argument('-n', '--npm', help='NPM sytle pre-release version', action='store_true', dest='npm', default=False) + parser.add_argument('-m', '--maven', help='Maven sytle pre-release version', action='store_true', dest='npm', default=False) + parser.add_argument('-b', '--build-number', help='Build number, used in pre-releases', default=0) + args = parser.parse_args() if args.debug: