Skip to content

Commit

Permalink
Allow querying a single AppID.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvander committed Sep 7, 2014
1 parent 2279ee2 commit e279b72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func addError(hostAndPort string, err error) {

func main() {
flag_game := flag.String("game", "", "Game (hl1, hl2)")
flag_appid := flag.Int("appid", 0, "Query a single AppID")
flag_appids := flag.String("appids", "", "Comma-delimited list of AppIDs")
flag_master := flag.String("master", valve.MasterServer, "Master server address")
flag_j := flag.Int("j", 20, "Number of concurrent requests (more will introduce more timeouts)")
Expand Down Expand Up @@ -164,6 +165,10 @@ func main() {
}
}

if *flag_appid != 0 {
appids = append(appids, valve.AppId(*flag_appid))
}

if len(appids) == 0 {
fmt.Fprintf(os.Stderr, "At least one AppID or game must be specified.\n")
os.Exit(1)
Expand Down

0 comments on commit e279b72

Please sign in to comment.