summaryrefslogtreecommitdiffstats
path: root/cmd-set-hook.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-13 21:53:57 +0000
committernicm <nicm>2015-12-13 21:53:57 +0000
commitecfeee2e8255a77f82a07124c93c8dbc7683c421 (patch)
tree9203458cd986398219f89c635b0583c8144b6cda /cmd-set-hook.c
parent899bee0056b2d90b1c40c800473014b458ebd63d (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'cmd-set-hook.c')
-rw-r--r--cmd-set-hook.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/cmd-set-hook.c b/cmd-set-hook.c
index d75b0ba1..e502fa79 100644
--- a/cmd-set-hook.c
+++ b/cmd-set-hook.c
@@ -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