Fix verbose output
This commit is contained in:
parent
45f23e6450
commit
e396d5a4a4
|
@ -74,7 +74,7 @@ class MonitoringPlugin(object):
|
||||||
if self._cmdlineoptions_parsed:
|
if self._cmdlineoptions_parsed:
|
||||||
return
|
return
|
||||||
# self.__optparser.add_option('-V', '--version', action='version', help='show version number and exit')
|
# 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.options, self.args) = self.__optparser.parse_args()
|
||||||
self._cmdlineoptions_parsed = True
|
self._cmdlineoptions_parsed = True
|
||||||
|
|
Loading…
Reference in a new issue