summaryrefslogtreecommitdiff
path: root/minecctl/minecctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'minecctl/minecctl.c')
-rw-r--r--minecctl/minecctl.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/minecctl/minecctl.c b/minecctl/minecctl.c
index a12d3ce..9a43fc3 100644
--- a/minecctl/minecctl.c
+++ b/minecctl/minecctl.c
@@ -151,7 +151,21 @@ void dump_config(struct cfg *cfg)
_noreturn_ static void usage(bool no_error)
{
- info("Usage: %s [OPTION...] COMMAND\n"
+ info("Usage: %s [OPTIONS...] COMMAND\n"
+ "\n"
+ "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"
+ " stop [SERVER] stop SERVER\n"
+ " stopall stop all known servers (including ADDR)\n"
+ " pcount [SERVER] get player count for SERVER\n"
+ " console [SERVER] interactive command line for SERVER\n"
+ " cmd [SERVER] CMD send CMD to SERVER\n"
+ " cmds [SERVER] CMDS... send multiple CMDS to SERVER\n"
+ " [SERVER] CMD shorthand for \"cmd [SERVER] CMD\"\n"
+ " [SERVER] shorthand for \"console [SERVER]\"\n"
"\n"
"Valid options:\n"
" -p, --rcon-password=PWD use PWD when connecting via rcon\n"
@@ -168,22 +182,10 @@ _noreturn_ static void usage(bool no_error)
" -d, --debug enable debugging information\n"
" -h, --help print this information\n"
"\n"
- "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"
- " stop [SERVER] stop SERVER\n"
- " stopall stop all known servers (including ADDR)\n"
- " pcount [SERVER] get player count for SERVER\n"
- " console [SERVER] interactive command line for SERVER\n"
- " cmd [SERVER] CMD send CMD to SERVER\n"
- " cmds [SERVER] CMDS... send multiple CMDS to SERVER\n"
- " [SERVER] CMD shorthand for \"cmd [SERVER] CMD\"\n"
- " [SERVER] shorthand for \"console [SERVER]\"\n"
- "\n"
"Note: if ADDR is given as an option, SERVER must be omitted from\n"
- " the command and vice versa.\n",
+ " the command and vice versa.\n"
+ "\n"
+ "See the minecctl(1) man page for details.\n",
program_invocation_short_name, DEFAULT_CFG_DIR);
exit(no_error ? EXIT_FAILURE : EXIT_SUCCESS);