mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.
This commit is contained in:
@ -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
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user