Fix verbose output

This commit is contained in:
Sven Velt 2020-12-29 22:22:51 +01:00
parent 45f23e6450
commit e396d5a4a4

View file

@ -74,7 +74,7 @@ class MonitoringPlugin(object):
if self._cmdlineoptions_parsed:
return
# self.__optparser.add_option('-V', '--version', action='version', help='show version number and exit')
self.__optparser.add_option('-v', '--verbose', dest='verbose', help='Verbosity, more for more ;-)', action='count')
self.__optparser.add_option('-v', '--verbose', dest='verbose', help='Verbosity, more for more ;-)', default=0, action='count')
(self.options, self.args) = self.__optparser.parse_args()
self._cmdlineoptions_parsed = True