def make_help_cmd(cmd, docstring):
 def help_cmd(message=docstring, cmd=cmd):
  print ('=' * 15)
  print ('\nHelp for command %s:\n' % (cmd,))
  print message.strip()
  print ''
  print ('=' * 15)
  print ''
 return help_cmd

def make_help_cmd ( cmd , docstring ) : def help_cmd ( message = docstring , cmd = cmd ) : print ( '=' * 15 ) print ( '\nHelp for command %s:\n' % ( cmd , ) ) print message . strip ( ) print '' print ( '=' * 15 ) print '' return help_cmd
dynamically define a twill shell help function for the given command/docstring .