summaryrefslogtreecommitdiffstats
path: root/cmd-if-shell.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-if-shell.c
parent899bee0056b2d90b1c40c800473014b458ebd63d (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r--cmd-if-shell.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index 404f4671..4c2cacb1 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -36,11 +36,15 @@ void cmd_if_shell_done(struct cmd_q *);
void cmd_if_shell_free(void *);
const struct cmd_entry cmd_if_shell_entry = {
- "if-shell", "if",
- "bFt:", 2, 3,
- "[-bF] " CMD_TARGET_PANE_USAGE " shell-command command [command]",
- CMD_PANE_T|CMD_CANFAIL,
- cmd_if_shell_exec
+ .name = "if-shell",
+ .alias = "if",
+
+ .args = { "bFt:", 2, 3 },
+ .usage = "[-bF] " CMD_TARGET_PANE_USAGE " shell-command command "
+ "[command]",
+
+ .flags = CMD_PANE_T|CMD_CANFAIL,
+ .exec = cmd_if_shell_exec
};
struct cmd_if_shell_data {