Get the average batting by running:
avg_batting.rb [--team="teamID"] [--year=yearID]
For example:
avg_batting.rb #get all the result for all teams and all years
avg_batting.rb --team="Chicago Colts" #get the result for team "Chicago Colts"
avg_batting.rb --year=1892 #get the result in year 1892 for all teams
avg_batting.rb --team="Chicago Colts" --year=1892 #get the result for team "Chicago Colts" in year 1892