<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cli_guild(name, tibiadata, json):
 """Displays information about a Tibia guild."""

    name = " ".join(name)
    guild = _fetch_and_parse(Guild.get_url, Guild.from_content,
                             Guild.get_url_tibiadata, Guild.from_tibiadata,
                             tibiadata, name)
    if json and guild:
        print(guild.to_json(indent=2))
        return
    print(get_guild_string(guild))