def display_command(name):
 command = crawl(name, state.commands)
 if (command is None):
  msg = "Task '%s' does not appear to exist. Valid task names:\n%s"
  abort((msg % (name, '\n'.join(_normal_list(False)))))
 if hasattr(command, '__details__'):
  task_details = command.__details__()
 else:
  task_details = get_task_details(command)
 if task_details:
  print ("Displaying detailed information for task '%s':" % name)
  print ''
  print indent(task_details, strip=True)
  print ''
 else:
  print ("No detailed information available for task '%s':" % name)
 sys.exit(0)

def display_command ( name ) : command = crawl ( name , state . commands ) if ( command is None ) : msg = "Task '%s' does not appear to exist. Valid task names:\n%s" abort ( ( msg % ( name , '\n' . join ( _normal_list ( False ) ) ) ) ) if hasattr ( command , '__details__' ) : task_details = command . __details__ ( ) else : task_details = get_task_details ( command ) if task_details : print ( "Displaying detailed information for task '%s':" % name ) print '' print indent ( task_details , strip = True ) print '' else : print ( "No detailed information available for task '%s':" % name ) sys . exit ( 0 )
print command functions docstring .