summaryrefslogtreecommitdiffstats
path: root/cmd-choose-tree.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-choose-tree.c
parent899bee0056b2d90b1c40c800473014b458ebd63d (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'cmd-choose-tree.c')
-rw-r--r--cmd-choose-tree.c42
1 files changed, 26 insertions, 16 deletions
diff --git a/cmd-choose-tree.c b/cmd-choose-tree.c
index 766978fe..faa9150c 100644
--- a/cmd-choose-tree.c
+++ b/cmd-choose-tree.c
@@ -44,28 +44,38 @@
enum cmd_retval cmd_choose_tree_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_choose_tree_entry = {
- "choose-tree", NULL,
- "S:W:swub:c:t:", 0, 1,
- "[-suw] [-b session-template] [-c window template] [-S format] " \
- "[-W format] " CMD_TARGET_WINDOW_USAGE,
- CMD_WINDOW_T,
- cmd_choose_tree_exec
+ .name = "choose-tree",
+ .alias = NULL,
+
+ .args = { "S:W:swub:c:t:", 0, 1 },
+ .usage = "[-suw] [-b session-template] [-c window template] "
+ "[-S format] [-W format] " CMD_TARGET_WINDOW_USAGE,
+
+ .flags = CMD_WINDOW_T,
+ .exec = cmd_choose_tree_exec
};
const struct cmd_entry cmd_choose_session_entry = {
- "choose-session", NULL,
- "F:t:", 0, 1,
- CMD_TARGET_WINDOW_USAGE " [-F format] [template]",
- CMD_WINDOW_T,
- cmd_choose_tree_exec
+ .name = "choose-session",
+ .alias = NULL,
+
+ .args = { "F:t:", 0, 1 },
+
+ .usage = CMD_TARGET_WINDOW_USAGE " [-F format] [template]",
+ .flags = CMD_WINDOW_T,
+
+ .exec = cmd_choose_tree_exec
};
const struct cmd_entry cmd_choose_window_entry = {
- "choose-window", NULL,
- "F:t:", 0, 1,
- CMD_TARGET_WINDOW_USAGE "[-F format] [template]",
- CMD_WINDOW_T,
- cmd_choose_tree_exec
+ .name = "choose-window",
+ .alias = NULL,
+
+ .args = { "F:t:", 0, 1 },
+ .usage = CMD_TARGET_WINDOW_USAGE "[-F format] [template]",
+
+ .flags = CMD_WINDOW_T,
+ .exec = cmd_choose_tree_exec
};
enum cmd_retval