projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c60d17e
)
command.c help: nicify help output
author
Andre
<maan@meins.(none)>
Sun, 28 Jan 2007 21:12:36 +0000
(22:12 +0100)
committer
Andre
<maan@meins.(none)>
Sun, 28 Jan 2007 21:12:36 +0000
(22:12 +0100)
command.c
patch
|
blob
|
history
diff --git
a/command.c
b/command.c
index 8c791ae74ebdd173f5c59773b0b1bd6f1eae196c..93e664e67fdf336df179277b2c7e1e667818ac27 100644
(file)
--- 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,
}
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,
argv[1],
cmd->description,
- cmd->synopsis,
- cmd->help,
handler,
handler,
- argv[1],
- perms
+ perms,
+ cmd->synopsis,
+ cmd->help
);
free(perms);
free(handler);
);
free(perms);
free(handler);