Skip to content

Commit

Permalink
Don't show a 'command-line' style usage in the whois server's --help etc
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisamin committed Oct 18, 2012
1 parent c3d5e63 commit 832abb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ripestat/whois/server.py
Expand Up @@ -45,13 +45,11 @@ def __init__(self, protocol, *args, **kwargs):
StatCoreParser.__init__(self, *args, **kwargs)

def print_help(self, *args, **kwargs):
for line in self.format_help().split("\n"):
for line in self.format_option_help().split("\n"):
self.protocol.output(line)

def print_usage(self, *args, **kwargs):
if self.usage:
for line in self.get_usage().split("\n"):
self.protocol.output(line)
self.print_help()

def exit(self, *args, **kwargs):
"""
Expand Down

0 comments on commit 832abb0

Please sign in to comment.