diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-06-03 17:30:14 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-06-03 17:30:14 -0400 |
commit | 0dbdfbcccd74f9c61bcfcef5cd3b0800959c9620 (patch) | |
tree | ccb79465677ca9158d901bab4564d1bd829f2f26 | |
parent | 994fcc67112ec72111e560c03f8ab533e16e374e (diff) | |
download | ipsutils-0dbdfbcccd74f9c61bcfcef5cd3b0800959c9620.tar.gz |
--version code implemented
-rwxr-xr-x | ipsbuild.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |