@click.command()<EOL>@click.option('<STR_LIT>', default=load_config_key,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', is_flag=True,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', is_flag=True,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', is_flag=True, default=False,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', is_flag=True,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.Choice(LEAGUE_IDS.keys()),<EOL>help=("<STR_LIT>"))<EOL>@click.option('<STR_LIT>', is_flag=True,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', type=click.Choice(TEAM_NAMES.keys()),<EOL>help=("<STR_LIT>"))<EOL>@click.option('<STR_LIT>', is_flag=True,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', default=<NUM_LIT:6>,<EOL>help=("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"))<EOL>@click.option('<STR_LIT>', is_flag=True, default=False,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', flag_value='<STR_LIT>', default=True,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', flag_value='<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', flag_value='<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', default=None,<EOL>help="<STR_LIT>")<EOL>def main(league, time, standings, team, live, use12hour, players,<EOL>output_format, output_file, upcoming, lookup, listcodes, apikey):
headers = {'<STR_LIT>': apikey}<EOL>try:<EOL><INDENT>if output_format == '<STR_LIT>' and output_file:<EOL><INDENT>raise IncorrectParametersException('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>writer = get_writer(output_format, output_file)<EOL>rh = RequestHandler(headers, LEAGUE_IDS, TEAM_NAMES, writer)<EOL>if listcodes:<EOL><INDENT>list_team_codes()<EOL>return<EOL><DEDENT>if live:<EOL><INDENT>rh.get_live_scores(use12hour)<EOL>return<EOL><DEDENT>if standings:<EOL><INDENT>if not league:<EOL><INDENT>raise IncorrectParametersException('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>if league == '<STR_LIT>':<EOL><INDENT>raise IncorrectParametersException('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>rh.get_standings(league)<EOL>return<EOL><DEDENT>if team:<EOL><INDENT>if lookup:<EOL><INDENT>map_team_id(team)<EOL>return<EOL><DEDENT>if players:<EOL><INDENT>rh.get_team_players(team)<EOL>return<EOL><DEDENT>else:<EOL><INDENT>rh.get_team_scores(team, time, upcoming, use12hour)<EOL>return<EOL><DEDENT><DEDENT>rh.get_league_scores(league, time, upcoming, use12hour)<EOL><DEDENT>except IncorrectParametersException as e:<EOL><INDENT>click.secho(str(e), fg="<STR_LIT>", bold=True)<EOL><DEDENT>
A CLI for live and past football scores from various football leagues.

League codes:

\b
- WC: World Cup
- EC: European Championship
- CL: Champions League
- PL: English Premier League
- ELC: English Championship
- FL1: French Ligue 1
- BL: German Bundesliga
- SA: Serie A
- DED: Eredivisie
- PPL: Primeira Liga
- PD: Primera Division
- BSA: Brazil Serie A