summaryrefslogtreecommitdiffstats
path: root/cmd-detach-client.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-detach-client.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-detach-client.c')
-rw-r--r--cmd-detach-client.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd-detach-client.c b/cmd-detach-client.c
index 6f6adbb9..daf9a5c6 100644
--- a/cmd-detach-client.c
+++ b/cmd-detach-client.c
@@ -35,7 +35,10 @@ const struct cmd_entry cmd_detach_client_entry = {
.args = { "as:t:P", 0, 0 },
.usage = "[-P] [-a] [-s target-session] " CMD_TARGET_CLIENT_USAGE,
- .flags = CMD_READONLY|CMD_CLIENT_T|CMD_SESSION_S,
+ .sflag = CMD_SESSION,
+ .tflag = CMD_CLIENT,
+
+ .flags = CMD_READONLY,
.exec = cmd_detach_client_exec
};
@@ -46,7 +49,9 @@ const struct cmd_entry cmd_suspend_client_entry = {
.args = { "t:", 0, 0 },
.usage = CMD_TARGET_CLIENT_USAGE,
- .flags = CMD_CLIENT_T,
+ .tflag = CMD_CLIENT,
+
+ .flags = 0,
.exec = cmd_detach_client_exec
};