def make_help_cmd(cmd, docstring):
    """
    Dynamically define a twill shell help function for the given
    command/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