- Fixed bug with dispUsage()

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@314 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.x
Cyril Jaquier 2006-08-28 21:33:54 +00:00
parent b13379d7f8
commit 5a3edcb619
1 changed files with 2 additions and 1 deletions

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)