Use member names in cmd_entry definitions so I stop getting confused

about the order.
This commit is contained in:
nicm
2015-12-13 21:53:57 +00:00
parent 899bee0056
commit ecfeee2e82
63 changed files with 716 additions and 449 deletions

View File

@ -30,19 +30,25 @@
enum cmd_retval cmd_set_hook_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_set_hook_entry = {
"set-hook", NULL,
"gt:u", 1, 2,
"[-gu] " CMD_TARGET_SESSION_USAGE " hook-name [command]",
CMD_SESSION_T,
cmd_set_hook_exec
.name = "set-hook",
.alias = NULL,
.args = { "gt:u", 1, 2 },
.usage = "[-gu] " CMD_TARGET_SESSION_USAGE " hook-name [command]",
.flags = CMD_SESSION_T,
.exec = cmd_set_hook_exec
};
const struct cmd_entry cmd_show_hooks_entry = {
"show-hooks", NULL,
"gt:", 0, 1,
"[-g] " CMD_TARGET_SESSION_USAGE,
CMD_SESSION_T,
cmd_set_hook_exec
.name = "show-hooks",
.alias = NULL,
.args = { "gt:", 0, 1 },
.usage = "[-g] " CMD_TARGET_SESSION_USAGE,
.flags = CMD_SESSION_T,
.exec = cmd_set_hook_exec
};
enum cmd_retval