static int wait_cmd(UAContext *ua, const char *cmd);
static int setip_cmd(UAContext *ua, const char *cmd);
+int qhelp_cmd(UAContext *ua, const char *cmd);
int quit_cmd(UAContext *ua, const char *cmd);
return 1;
}
+int qhelp_cmd(UAContext *ua, const char *cmd)
+{
+ unsigned int i;
+
+ for (i=0; i<comsize; i++) {
+ bsendmsg(ua, _("%s %s\n"), _(commands[i].key), _(commands[i].help));
+ }
+ return 1;
+}
+
static int version_cmd(UAContext *ua, const char *cmd)
{
bsendmsg(ua, "%s Version: " VERSION " (" BDATE ")\n", my_name);
/* Imported functions */
extern int qmessagescmd(UAContext *ua, const char *cmd);
extern int quit_cmd(UAContext *ua, const char *cmd);
+extern int qhelp_cmd(UAContext *ua, const char *cmd);
/* Forward referenced functions */
static int diecmd(UAContext *ua, const char *cmd);
{ N_(".storage"), storagecmd, NULL},
{ N_(".defaults"), defaultscmd, NULL},
{ N_(".messages"), qmessagescmd, NULL},
+ { N_(".help"), qhelp_cmd, NULL},
{ N_(".quit"), quit_cmd, NULL},
{ N_(".exit"), quit_cmd, NULL}
};