def parse_command_line(): parser = ArgumentParser(description='Compare team performance from this season against previous seasons') add_database_option(parser) add_history_option(parser) add_league_option(parser) add_team_option(parser) add_half_option(parser) add_venue_option(parser) add_logging_options(parser) add_block_option(parser) parser.add_argument('-A', '--average', help='compare against averages over previous seasons', action='store_true', default=False) parser.add_argument('-r', '--relative', choices=Position, type=Position.from_string, metavar='{{{}}}'.format(','.join(position.name for position in Position)), help='compare against relative table positions over previous seasons') parser.add_argument('-p', '--position', type=int, nargs='+', help='compare against absolute table positions over previous seasons') return parser.parse_args()
def parse_command_line(): parser = ArgumentParser(description='Show head-to-head record') add_database_option(parser) add_logging_options(parser) add_league_option(parser, False) add_team_option(parser, True) add_block_option(parser) return parser.parse_args()
def parse_command_line(): parser = ArgumentParser(description='Show recent form') add_database_option(parser) add_logging_options(parser) add_team_option(parser, True) add_league_option(parser, True) add_venue_option(parser) add_half_option(parser) add_block_option(parser) return parser.parse_args()
def parse_command_line(): parser = ArgumentParser( description='Show summary of seasons by results, goals, and scorelines' ) add_database_option(parser) add_league_option(parser) add_logging_options(parser) add_half_option(parser) add_block_option(parser) return parser.parse_args()
def parse_command_line(): parser = ArgumentParser(description='Show breakdown of results') add_database_option(parser) add_history_option(parser) add_league_option(parser) add_half_option(parser) add_venue_option(parser) add_logging_options(parser) add_team_option(parser, True) add_block_option(parser) return parser.parse_args()
def parse_command_line(): parser = ArgumentParser(description='Show minutes when goals are scored') add_database_option(parser) add_block_option(parser) add_history_option(parser) add_team_option(parser) add_venue_option(parser) add_league_option(parser, True) add_logging_options(parser) parser.add_argument('-I', '--intervals', help='specify the number of time intervals', type=int, default=5) return parser.parse_args()
def parse_command_line(): parser = ArgumentParser(description='Show matrix of data') add_database_option(parser) add_history_option(parser) add_league_option(parser) add_half_option(parser) add_venue_option(parser) add_logging_options(parser) add_chunk_option(parser) add_events_option(parser, True, 1) add_block_option(parser) parser.add_argument('-S', '--symmetry', action='store_true', help='assume the event applies to both teams equally', default=False) return parser.parse_args()
def parse_command_line(): parser = ArgumentParser(description='Show sequence data in bar charts') add_database_option(parser) add_half_option(parser) add_events_option(parser) add_history_option(parser) add_league_option(parser) add_team_option(parser) add_venue_option(parser) add_logging_options(parser) add_chunk_option(parser) add_block_option(parser) parser.add_argument('-l', '--lines', action='store_true', help='only show lines (not bars)', default=False) return parser.parse_args()
def parse_command_line(): parser = ArgumentParser(description='Analyse individual team') add_database_option(parser) add_history_option(parser) add_league_option(parser) add_team_option(parser) add_venue_option(parser) add_block_option(parser) add_logging_options(parser) parser.add_argument( '--game-states', help='analyse assuming one of these game states at half time', nargs='+', metavar='<SCORE>', type=str.strip) parser.add_argument('-A', '--averages', help='use seasonal averages', action='store_true', default=False) return parser.parse_args()