diff options
author | David Härdeman <david@hardeman.nu> | 2020-07-07 20:19:12 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-07-07 20:19:12 +0200 |
commit | e685df91251ca111e42306e6f36835e55f052c0c (patch) | |
tree | f82cd13720c9205aa2c03ca405ef3d8fa45fea58 /minecctl/minecctl.c | |
parent | bf0d7d8c08527d7150027e1bc3ae2c8499c4ca97 (diff) |
Change action verbs to be a bit more descriptive
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); |