From a55de6fe50a0924ff06ff927c299e43fba714a5a Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 17 Feb 2026 10:25:16 +0000 Subject: [PATCH] upd host shortflag to `-H` upd readme --- README.md | 2 +- cmd/q3rcon/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 488268c..f454835 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/cmd/q3rcon/main.go b/cmd/q3rcon/main.go index dd1ea92..952f620 100644 --- a/cmd/q3rcon/main.go +++ b/cmd/q3rcon/main.go @@ -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)")