mirror of https://github.com/fail2ban/fail2ban
- Fixed bug with dispUsage()
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@314 a942ae1a-1317-0410-a47c-b1dcaea8d6050.x
parent
b13379d7f8
commit
5a3edcb619
|
@ -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 New Issue