From ec5bb3b213385405105ef90eccb1b1f093004b22 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 5 Aug 2012 02:04:52 +0200 Subject: Use the revision/date for the poezio version if a .git is found --- src/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/config.py') diff --git a/src/config.py b/src/config.py index 85fa55f6..99a05118 100644 --- a/src/config.py +++ b/src/config.py @@ -15,7 +15,7 @@ DEFSECTION = "Poezio" from configparser import RawConfigParser, NoOptionError, NoSectionError from os import environ, makedirs, path from shutil import copy2 -from argparse import ArgumentParser +from argparse import ArgumentParser, SUPPRESS class Config(RawConfigParser): """ @@ -197,6 +197,8 @@ parser.add_argument("-f", "--file", dest="filename", default=path.join(CONFIG_PA help="The config file you want to use", metavar="CONFIG_FILE") parser.add_argument("-d", "--debug", dest="debug", help="The file where debug will be written", metavar="DEBUG_FILE") +parser.add_argument("-v", "--version", dest="version", + help=SUPPRESS, metavar="VERSION", default="0.8-dev") options = parser.parse_args() config = Config(options.filename) if firstrun: -- cgit v1.2.3