Hide plugin help when set to None
This commit is contained in:
parent
31461b91b2
commit
23ed549cce
|
@ -66,6 +66,8 @@ class MonitoringPlugin(object):
|
|||
|
||||
|
||||
def add_cmdlineoption(self, shortoption, longoption, dest, help, **kwargs):
|
||||
if help == None:
|
||||
help = optparse.SUPPRESS_HELP
|
||||
self.__optparser.add_option(shortoption, longoption, dest=dest, help=help, **kwargs)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue