File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ func addError(hostAndPort string, err error) {
105105
106106func 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 )
You can’t perform that action at this time.
0 commit comments