fixed typo, `--` is not expected in options declaration, so `--dump-pretty` did never work (only `--dp` is working)

pull/3117/head
sebres 2021-03-03 13:02:00 +01:00
parent a45b1c974c
commit 04aba6168c
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class Fail2banCmdLine():
cmdOpts = 'hc:s:p:xfbdtviqV'
cmdLongOpts = ['loglevel=', 'logtarget=', 'syslogsocket=', 'test', 'async',
'conf=', 'pidfile=', 'pname=', 'socket=',
'timeout=', 'str2sec=', 'help', 'version', 'dp', '--dump-pretty']
'timeout=', 'str2sec=', 'help', 'version', 'dp', 'dump-pretty']
optList, self._args = getopt.getopt(self._argv[1:], cmdOpts, cmdLongOpts)
except getopt.GetoptError:
self.dispUsage()