From ab35e989fa43a2817e952e679002e2218f5197b9 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 10 Feb 2013 14:54:58 +0200 Subject: [PATCH] Can print version string. --- builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder.py b/builder.py index f0d8ca0c3..4b0c9499e 100755 --- a/builder.py +++ b/builder.py @@ -20,9 +20,11 @@ import os.path import environment, interpreter import generators, build +version = '0.1-research' + usage_info = '%prog [options] source_dir build_dir' -parser = OptionParser(usage=usage_info) +parser = OptionParser(usage=usage_info, version=version) parser.add_option('--prefix', default='/usr/local', dest='prefix', help='the installation prefix (default: %default)')