Skip to content

Commit e279b72

Browse files
committed
Allow querying a single AppID.
1 parent 2279ee2 commit e279b72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

blaster.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func addError(hostAndPort string, err error) {
105105

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

168+
if *flag_appid != 0 {
169+
appids = append(appids, valve.AppId(*flag_appid))
170+
}
171+
167172
if len(appids) == 0 {
168173
fmt.Fprintf(os.Stderr, "At least one AppID or game must be specified.\n")
169174
os.Exit(1)

0 commit comments

Comments
 (0)