mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[UI] Fix unable to use uppercase log level
This commit is contained in:
parent
69871506e1
commit
c821cdd9c7
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ class BaseArgParser(argparse.ArgumentParser):
|
||||||
help=_("Set the config directory path"))
|
help=_("Set the config directory path"))
|
||||||
self.group.add_argument("-l", "--logfile", metavar="<logfile>",
|
self.group.add_argument("-l", "--logfile", metavar="<logfile>",
|
||||||
help=_("Output to specified logfile instead of stdout"))
|
help=_("Output to specified logfile instead of stdout"))
|
||||||
self.group.add_argument("-L", "--loglevel", choices=deluge.log.levels, metavar="<level>",
|
self.group.add_argument("-L", "--loglevel", choices=[l for k in deluge.log.levels for l in (k, k.upper())],
|
||||||
help=_("Set the log level (none, error, warning, info, debug)"))
|
help=_("Set the log level (none, error, warning, info, debug)"), metavar="<level>")
|
||||||
self.group.add_argument("--logrotate", nargs="?", const="2M", metavar="<max-size>",
|
self.group.add_argument("--logrotate", nargs="?", const="2M", metavar="<max-size>",
|
||||||
help=_("Enable logfile rotation, with optional maximum logfile size, "
|
help=_("Enable logfile rotation, with optional maximum logfile size, "
|
||||||
"default: %(const)s (Logfile rotation count is 5)"))
|
"default: %(const)s (Logfile rotation count is 5)"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue