[UI] Restore short arg for version '-V' (deprecate '-v')

This commit is contained in:
Calum Lind 2016-04-26 11:59:24 +01:00
parent acdc19df1d
commit a99e29642c

View File

@ -95,8 +95,10 @@ class BaseArgParser(argparse.ArgumentParser):
self.common_setup = False
self.group = self.add_argument_group(_("Common Options"))
self.group.add_argument("--version", action="version", version="%(prog)s " + get_version(),
self.group.add_argument("-V", "--version", action="version", version="%(prog)s " + get_version(),
help=_("Show program's version info and exit"))
self.group.add_argument("-v", action="version", version="%(prog)s " + get_version(),
help=argparse.SUPPRESS) # Deprecated arg
self.group.add_argument("-c", "--config", action="store", metavar="<config>",
help=_("Set the config directory path"))
self.group.add_argument("-l", "--logfile", action="store", metavar="<logfile>",