mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
- Fixed bug with dispUsage()
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@314 a942ae1a-1317-0410-a47c-b1dcaea8d605
This commit is contained in:
parent
c24ace0af5
commit
fc5ad75109
1 changed files with 2 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ class Fail2banClient:
|
|||
self.dumpConfig(self.stream)
|
||||
return True
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
if len(cmd) < 1:
|
||||
self.dispUsage()
|
||||
return False
|
||||
|
||||
|
|
@ -231,6 +231,7 @@ class Fail2banClient:
|
|||
optList, args = getopt.getopt(self.argv[1:], cmdOpts, cmdLongOpts)
|
||||
except getopt.GetoptError:
|
||||
self.dispUsage()
|
||||
return False
|
||||
|
||||
self.getCmdLineOptions(optList)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue