code: def main(league, time, standings, team, live, use12hour, players,
           output_format, output_file, upcoming, lookup, listcodes, apikey):
      
      headers = {'X-Auth-Token': apikey}
  
      try:
          if output_format == 'stdout' and output_file:
              raise IncorrectParametersException('Printing output to stdout and '
                                                 'saving to a file are mutually exclusive')
          writer = get_writer(output_format, output_file)
          rh = RequestHandler(headers, LEAGUE_IDS, TEAM_NAMES, writer)
  
          if listcodes:
              list_team_codes()
              return
  
          if live:
              rh.get_live_scores(use12hour)
              return
  
          if standings:
              if not league:
                  raise IncorrectParametersException('Please specify a league. '
                                                     'Example --standings --league=PL')
              if league == 'CL':
                  raise IncorrectParametersException('Standings for CL - '
                                                     'Champions League not supported')
              rh.get_standings(league)
              return
  
          if team:
              if lookup:
                  map_team_id(team)
                  return
              if players:
                  rh.get_team_players(team)
                  return
              else:
                  rh.get_team_scores(team, time, upcoming, use12hour)
                  return
  
          rh.get_league_scores(league, time, upcoming, use12hour)
      except IncorrectParametersException as e:
          click.secho(str(e), fg="red", bold=True)
docs: 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