summaryrefslogtreecommitdiffstats
path: root/cmd-has-session.c
diff options
context:
space:
mode:
authornicm <nicm>2008-06-02 18:08:16 +0000
committernicm <nicm>2008-06-02 18:08:16 +0000
commit263848f05bf18c8fd9ce293894ea1bfe0e678db0 (patch)
treec0e3300759c19c241b35db427510f112211a2272 /cmd-has-session.c
parent33a12b4e3981d3732bc90fd40384007d8a8198c7 (diff)
downloadtmux-old-263848f05bf18c8fd9ce293894ea1bfe0e678db0.tar.gz
tmux-old-263848f05bf18c8fd9ce293894ea1bfe0e678db0.tar.bz2
tmux-old-263848f05bf18c8fd9ce293894ea1bfe0e678db0.zip
Move -s and -c down a level so handling them is the responsibility of the command (with some helper functions), rather than the top-level. This changes the action command syntax so that -s and -c must be after the command rather than before.
Diffstat (limited to 'cmd-has-session.c')
-rw-r--r--cmd-has-session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd-has-session.c b/cmd-has-session.c
index 00e62857..e4a178e5 100644
--- a/cmd-has-session.c
+++ b/cmd-has-session.c
@@ -32,8 +32,9 @@
void cmd_has_session_exec(void *, struct cmd_ctx *);
const struct cmd_entry cmd_has_session_entry = {
- "has-session", "has", "",
- CMD_NOCLIENT,
+ "has-session", "has",
+ "",
+ 0,
NULL,
cmd_has_session_exec,
NULL,