aboutsummaryrefslogtreecommitdiff
path: root/ipsbuild.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2013-06-03 17:30:14 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2013-06-03 17:30:14 -0400
commit0dbdfbcccd74f9c61bcfcef5cd3b0800959c9620 (patch)
treeccb79465677ca9158d901bab4564d1bd829f2f26 /ipsbuild.py
parent994fcc67112ec72111e560c03f8ab533e16e374e (diff)
downloadipsutils-0dbdfbcccd74f9c61bcfcef5cd3b0800959c9620.tar.gz
--version code implemented
Diffstat (limited to 'ipsbuild.py')
-rwxr-xr-xipsbuild.py4
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)