summaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2007-10-19 09:22:17 +0200
committerGuido Guenther <agx@sigxcpu.org>2007-10-19 09:22:17 +0200
commit53d0b13794018f88dcd2df017667e173bb333abf (patch)
treeeae05ca7a450536da845d8403c67630233684cea /gbp
parent44a34275141b0646cadfdac38f4c34bbaed1b68e (diff)
add version number to docs and a tools
Diffstat (limited to 'gbp')
-rw-r--r--gbp/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 244ade5e..21d5f215 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -6,6 +6,7 @@
from optparse import OptionParser
from ConfigParser import SafeConfigParser
import os.path
+from gbp.gbp_version import gbp_version
class GbpOptionParser(OptionParser):
"""
@@ -55,7 +56,7 @@ class GbpOptionParser(OptionParser):
self.prefix = prefix
self.config = {}
self.__parse_config_files()
- OptionParser.__init__(self, usage=usage)
+ OptionParser.__init__(self, usage=usage, version='%s %s' % (self.command, gbp_version))
def add_config_file_option(self, option_name, dest, help, **kwargs):
"""