- 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:
lostcontrol 2006-08-28 21:33:54 +00:00
parent c24ace0af5
commit fc5ad75109

View file

@ -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)