mirror of
https://github.com/onyx-and-iris/q3rcon.git
synced 2026-03-02 17:09:19 +00:00
upd host shortflag to -H
upd readme
This commit is contained in:
parent
e4f3366a67
commit
a55de6fe50
@ -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"
|
||||
|
||||
@ -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)")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user