summaryrefslogtreecommitdiffstats
path: root/cmd-has-session.c
diff options
context:
space:
mode:
authornicm <nicm>2009-07-14 06:43:32 +0000
committernicm <nicm>2009-07-14 06:43:32 +0000
commit2a601483e5b5484a9a9af712dc9d7f7eed88a30f (patch)
tree21d2624147477e15b5d150c0b5b60cf8f9deffaf /cmd-has-session.c
parenta2b431b90be2f7d6e00a2617becfa0e6491f74ec (diff)
downloadtmux-old-2a601483e5b5484a9a9af712dc9d7f7eed88a30f.tar.gz
tmux-old-2a601483e5b5484a9a9af712dc9d7f7eed88a30f.tar.bz2
tmux-old-2a601483e5b5484a9a9af712dc9d7f7eed88a30f.zip
Having fixed flags for single-character getopt options is a bit hard to
maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
Diffstat (limited to 'cmd-has-session.c')
-rw-r--r--cmd-has-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-has-session.c b/cmd-has-session.c
index 06f5911a..a428c421 100644
--- a/cmd-has-session.c
+++ b/cmd-has-session.c
@@ -29,7 +29,7 @@ int cmd_has_session_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_has_session_entry = {
"has-session", "has",
CMD_TARGET_SESSION_USAGE,
- 0,
+ 0, 0,
cmd_target_init,
cmd_target_parse,
cmd_has_session_exec,