itzg / rcon-cli

A little RCON cli based on james4k's RCON library for golang
Apache License 2.0
180 stars 17 forks source link

--config doesn't work #2

Closed phemmer closed 5 years ago

phemmer commented 5 years ago

The --config command line argument doesn't do anything.

# echo "port: 25575" > /tmp/config.yaml

# ./rcon-cli --config /tmp/config.yaml help
2019/01/08 02:56:38 Failed to connect to RCON serverdial tcp [::1]:27015: connect: connection refused

# mv /tmp/config.yaml /tmp/.rcon-cli.yaml

# HOME=/tmp ./rcon-cli help
Using config file: /tmp/.rcon-cli.yaml
§e--------- §fHelp: Index (1/9) §e---------------------
§7Use /help [n] to get page n of help.
§6Aliases: §fLists command aliases
§6Bukkit: §fAll commands for Bukkit
§6Minecraft: §fAll commands for Minecraft
§6/advancement: §fA Mojang provided command.
§6/ban: §fA Mojang provided command.
§6/ban-ip: §fA Mojang provided command.
§6/banlist: §fA Mojang provided command.
§6/bossbar: §fA Mojang provided command.
itzg commented 5 years ago

@phemmer thanks for reporting this. It should now be fixed in 1.4.1.