From d431f957ebaeecc20685ac49a8c96e56cdef43f6 Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 28 Jan 2007 22:12:36 +0100 Subject: [PATCH] command.c help: nicify help output --- command.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/command.c b/command.c index 8c791ae7..93e664e6 100644 --- a/command.c +++ b/command.c @@ -510,20 +510,17 @@ int com_help(int fd, int argc, char **argv) } perms = cmd_perms_itohuman(cmd->perms); ret = send_va_buffer(fd, - "NAME\n\t%s - %s\n" - "SYNOPSIS\n\t para_client %s\n" - "DESCRIPTION\n%s\n" - "HANDLER\n" - "This command is handled by %s.\n\n" - "PERMISSIONS\n" - "Needed privileges for %s: %s\n", + "%s - %s\n\n" + "handler: %s\n" + "permissions: %s\n" + "usage: %s\n\n" + "%s\n", argv[1], cmd->description, - cmd->synopsis, - cmd->help, handler, - argv[1], - perms + perms, + cmd->synopsis, + cmd->help ); free(perms); free(handler); -- 2.39.5