diff options
Diffstat (limited to 'minecctl/minecctl.c')
-rw-r--r-- | minecctl/minecctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/minecctl/minecctl.c b/minecctl/minecctl.c index 9a43fc3..925092e 100644 --- a/minecctl/minecctl.c +++ b/minecctl/minecctl.c @@ -156,8 +156,8 @@ _noreturn_ static void usage(bool no_error) "Valid commands:\n" " list list known servers\n" " lint check validity of server configuration files\n" - " status [SERVER] show status of SERVER (or all known servers)\n" - " ping [SERVER] check if SERVER is running\n" + " info [SERVER] show information about a running SERVER (or all known servers)\n" + " status [SERVER] check if SERVER (or all known servers) is running and accessible\n" " stop [SERVER] stop SERVER\n" " stopall stop all known servers (including ADDR)\n" " pcount [SERVER] get player count for SERVER\n" @@ -335,13 +335,13 @@ static void parse_command(struct cfg *cfg, char *const *argv) } cfg->cmd = do_stop_all; break; - case CMD_STATUS: + case CMD_INFO: get_optional_server_arg(cfg, &argv, false); - cfg->cmd = do_status; + cfg->cmd = do_info; break; - case CMD_PING: + case CMD_STATUS: get_optional_server_arg(cfg, &argv, false); - cfg->cmd = do_ping; + cfg->cmd = do_status; break; case CMD_STOP: get_optional_server_arg(cfg, &argv, false); |