def readrecipe(recipebook, index):
    """
    Returns one recipe, for command line output
    """
    try:
        return recipebook.recipes[index].prettyprint()
    except IndexError:
        return "Error: no such recipe"