aboutsummaryrefslogtreecommitdiff
path: root/src/server/telnet_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/telnet_server.c')
-rw-r--r--src/server/telnet_server.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c
index 92e7480..6f26f0a 100644
--- a/src/server/telnet_server.c
+++ b/src/server/telnet_server.c
@@ -619,17 +619,18 @@ COMMAND_HANDLER(handle_exit_command)
static const struct command_registration telnet_command_handlers[] = {
{
.name = "exit",
- .handler = &handle_exit_command,
+ .handler = handle_exit_command,
.mode = COMMAND_EXEC,
.help = "exit telnet session",
},
{
.name = "telnet_port",
- .handler = &handle_telnet_port_command,
+ .handler = handle_telnet_port_command,
.mode = COMMAND_ANY,
- .help = "port on which to listen "
- "for incoming telnet connections",
- .usage = "<port>",
+ .help = "Specify port on which to listen "
+ "for incoming telnet connections. "
+ "No arguments reports telnet port; zero disables.",
+ .usage = "[port_num]",
},
COMMAND_REGISTRATION_DONE
};