Fix some typos
This commit is contained in:
parent
b605048d23
commit
e3dea5ee8a
|
@ -42,7 +42,7 @@ class _UI(object):
|
||||||
|
|
||||||
self.__parser = OptionParser(version=deluge.common.get_version())
|
self.__parser = OptionParser(version=deluge.common.get_version())
|
||||||
|
|
||||||
group = OptionGroup(self.parser, "Common Options")
|
group = OptionGroup(self.__parser, "Common Options")
|
||||||
group.add_option("-c", "--config", dest="config",
|
group.add_option("-c", "--config", dest="config",
|
||||||
help="Set the config folder location", action="store", type="str")
|
help="Set the config folder location", action="store", type="str")
|
||||||
group.add_option("-l", "--logfile", dest="logfile",
|
group.add_option("-l", "--logfile", dest="logfile",
|
||||||
|
@ -53,7 +53,7 @@ class _UI(object):
|
||||||
help="Set the log level: none, info, warning, error, critical, debug", action="store", type="str")
|
help="Set the log level: none, info, warning, error, critical, debug", action="store", type="str")
|
||||||
group.add_option("-q", "--quiet", dest="quiet",
|
group.add_option("-q", "--quiet", dest="quiet",
|
||||||
help="Sets the log level to 'none', this is the same as `-L none`", action="store_true", default=False)
|
help="Sets the log level to 'none', this is the same as `-L none`", action="store_true", default=False)
|
||||||
self.parser.add_option_group(group)
|
self.__parser.add_option_group(group)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
@ -72,7 +72,7 @@ class _UI(object):
|
||||||
return self._args
|
return self._args
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
(self.__options, self.__args) = self.parser.parse_args()
|
(self.__options, self.__args) = self.__parser.parse_args()
|
||||||
|
|
||||||
class UI:
|
class UI:
|
||||||
def __init__(self, options, args, ui_args):
|
def __init__(self, options, args, ui_args):
|
||||||
|
|
Loading…
Reference in New Issue