upd host shortflag to -H

upd readme
This commit is contained in:
onyx-and-iris 2026-02-17 10:25:16 +00:00
parent e4f3366a67
commit a55de6fe50
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ rcon, err := q3rcon.New(
Pass `host`, `port` and `rconpass` as flags, for example:
```
q3rcon -h=localhost -p=30000 -r="rconpassword" "mapname"
q3rcon -H=localhost -p=30000 -r="rconpassword" "mapname"
```
- `host` defaults to "localhost"

View File

@ -49,7 +49,7 @@ func run() (func(), error) {
)
flag.StringVar(&host, "host", "localhost", "hostname of the gameserver")
flag.StringVar(&host, "h", "localhost", "hostname of the gameserver (shorthand)")
flag.StringVar(&host, "H", "localhost", "hostname of the gameserver (shorthand)")
flag.IntVar(&port, "port", 28960, "port on which the gameserver resides, default is 28960")
flag.IntVar(
&port,
@ -66,7 +66,7 @@ func run() (func(), error) {
)
flag.BoolVar(&interactive, "interactive", false, "run in interactive mode")
flag.BoolVar(&interactive, "i", false, "run in interactive mode")
flag.BoolVar(&interactive, "i", false, "run in interactive mode (shorthand)")
flag.StringVar(&loglevel, "loglevel", "warn", "log level")
flag.StringVar(&loglevel, "l", "warn", "log level (shorthand)")