Explorar el Código

Hide plugin help when set to None

Sven Velt hace 8 años
padre
commit
23ed549cce
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      monitoringplugin.py

+ 2 - 0
monitoringplugin.py

@@ -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)