summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-14 00:31:54 +0000
committernicm <nicm>2015-12-14 00:31:54 +0000
commita3129fd4e820d7ccb3797fed491e7c021b63c568 (patch)
tree2670410ce357adf7dee1ace4f33d88f034b2ec12 /cmd-set-option.c
parentecfeee2e8255a77f82a07124c93c8dbc7683c421 (diff)
Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 5190e181..13de02a3 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -71,7 +71,9 @@ const struct cmd_entry cmd_set_option_entry = {
.args = { "agoqst:uw", 1, 2 },
.usage = "[-agosquw] [-t target-window] option [value]",
- .flags = CMD_WINDOW_T|CMD_CANFAIL,
+ .tflag = CMD_WINDOW_CANFAIL,
+
+ .flags = 0,
.exec = cmd_set_option_exec
};
@@ -82,7 +84,9 @@ const struct cmd_entry cmd_set_window_option_entry = {
.args = { "agoqt:u", 1, 2 },
.usage = "[-agoqu] " CMD_TARGET_WINDOW_USAGE " option [value]",
- .flags = CMD_WINDOW_T|CMD_CANFAIL,
+ .tflag = CMD_WINDOW_CANFAIL,
+
+ .flags = 0,
.exec = cmd_set_option_exec
};