mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
[UI] Restore short arg for version '-V' (deprecate '-v')
This commit is contained in:
parent
acdc19df1d
commit
a99e29642c
1 changed files with 3 additions and 1 deletions
|
@ -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>",
|
||||
|
|
Loading…
Add table
Reference in a new issue