diff options
author | nicm <nicm> | 2015-12-13 21:53:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-12-13 21:53:57 +0000 |
commit | ecfeee2e8255a77f82a07124c93c8dbc7683c421 (patch) | |
tree | 9203458cd986398219f89c635b0583c8144b6cda /cmd-command-prompt.c | |
parent | 899bee0056b2d90b1c40c800473014b458ebd63d (diff) |
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'cmd-command-prompt.c')
-rw-r--r-- | cmd-command-prompt.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index 900fceb9..64b24bb5 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -35,11 +35,15 @@ int cmd_command_prompt_callback(void *, const char *); void cmd_command_prompt_free(void *); const struct cmd_entry cmd_command_prompt_entry = { - "command-prompt", NULL, - "I:p:t:", 0, 1, - "[-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " [template]", - CMD_CLIENT_T, - cmd_command_prompt_exec + .name = "command-prompt", + .alias = NULL, + + .args = { "I:p:t:", 0, 1 }, + .usage = "[-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " " + "[template]", + + .flags = CMD_CLIENT_T, + .exec = cmd_command_prompt_exec }; struct cmd_command_prompt_cdata { |