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:
@ -41,7 +41,9 @@ const struct cmd_entry cmd_show_options_entry = {
|
||||
.args = { "gqst:vw", 0, 1 },
|
||||
.usage = "[-gqsvw] [-t target-session|target-window] [option]",
|
||||
|
||||
.flags = CMD_WINDOW_T|CMD_CANFAIL,
|
||||
.tflag = CMD_WINDOW_CANFAIL,
|
||||
|
||||
.flags = 0,
|
||||
.exec = cmd_show_options_exec
|
||||
};
|
||||
|
||||
@ -52,7 +54,9 @@ const struct cmd_entry cmd_show_window_options_entry = {
|
||||
.args = { "gvt:", 0, 1 },
|
||||
.usage = "[-gv] " CMD_TARGET_WINDOW_USAGE " [option]",
|
||||
|
||||
.flags = CMD_WINDOW_T|CMD_CANFAIL,
|
||||
.tflag = CMD_WINDOW_CANFAIL,
|
||||
|
||||
.flags = 0,
|
||||
.exec = cmd_show_options_exec
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user