aboutsummaryrefslogtreecommitdiff
path: root/cmd-show-window-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-show-window-options.c')
-rw-r--r--cmd-show-window-options.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/cmd-show-window-options.c b/cmd-show-window-options.c
index b81f887c..4412499a 100644
--- a/cmd-show-window-options.c
+++ b/cmd-show-window-options.c
@@ -31,20 +31,19 @@ int cmd_show_window_options_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_show_window_options_entry = {
"show-window-options", "showw",
+ "gt:", 0, 0,
"[-g] " CMD_TARGET_WINDOW_USAGE,
- 0, "g",
- cmd_target_init,
- cmd_target_parse,
- cmd_show_window_options_exec,
- cmd_target_free,
- cmd_target_print
+ 0,
+ NULL,
+ NULL,
+ cmd_show_window_options_exec
};
int
cmd_show_window_options_exec(struct cmd *self, struct cmd_ctx *ctx)
{
- struct cmd_target_data *data = self->data;
+ struct args *args = self->args;
- cmd_set_flag(&data->chflags, 'w');
+ args_set(args, 'w', NULL);
return (cmd_show_options_entry.exec(self, ctx));
}