From 0dbdfbcccd74f9c61bcfcef5cd3b0800959c9620 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 3 Jun 2013 17:30:14 -0400 Subject: --version code implemented --- ipsbuild.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipsbuild.py') diff --git a/ipsbuild.py b/ipsbuild.py index a798f19..efcd380 100755 --- a/ipsbuild.py +++ b/ipsbuild.py @@ -26,6 +26,10 @@ parser.add_argument('--lint', action="store_true", help='Enables deep packaging parser.add_argument('spec', nargs='*', help='An ipsutils spec file') args = parser.parse_args() +if args.version: + print("{0:s}".format(ipsutils.__version__)) + exit(0) + # Record current path, because we change directories from within the class # This way all spec files will be read cwd = os.path.abspath(os.curdir) -- cgit