Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
Move help_help because it helps to have _start_cond() next to awhile().
  • Loading branch information
mgedmin committed Apr 15, 2015
1 parent 91b4cab commit 3fdf0a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zdaemon/zdctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ def awhile(self, cond, msg):
print("^C")
print("\n" + msg % self.__dict__)

def help_help(self):
print("help -- Print a list of available actions.")
print("help <action> -- Print help for <action>.")

def _start_cond(self, n):
if (n > self.options.start_timeout):
print('\nProgram took too long to start')
Expand Down Expand Up @@ -551,6 +547,10 @@ def help_foreground(self):
def help_fg(self):
self.help_foreground()

def help_help(self):
print("help -- Print a list of available actions.")
print("help <action> -- Print help for <action>.")


class TailHelper:

Expand Down

0 comments on commit 3fdf0a2

Please sign in to comment.