summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-26 02:10:03 -0400
committerJune McEnroe <june@causal.agency>2019-10-26 02:10:03 -0400
commitd95af1b6e0d07343049bec988e57b13173d472b9 (patch)
tree142d3660fce36d370c54e74cd158578a1921c116 /bounce.c
parentOops (diff)
downloadpounce-d95af1b6e0d07343049bec988e57b13173d472b9.tar.gz
pounce-d95af1b6e0d07343049bec988e57b13173d472b9.zip
Add flags to request TOPIC and NAMES on client connect
Diffstat (limited to '')
-rw-r--r--bounce.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c
index 1257b93..712b9c3 100644
--- a/bounce.c
+++ b/bounce.c
@@ -93,12 +93,14 @@ int main(int argc, char *argv[]) {
 	const char *join = NULL;
 
 	int opt;
-	while (0 < (opt = getopt(argc, argv, "C:H:K:P:W:a:h:j:n:p:r:u:vw:"))) {
+	while (0 < (opt = getopt(argc, argv, "C:H:K:NTP:W:a:h:j:n:p:r:u:vw:"))) {
 		switch (opt) {
 			break; case 'C': strlcpy(certPath, optarg, sizeof(certPath));
 			break; case 'H': localHost = optarg;
 			break; case 'K': strlcpy(privPath, optarg, sizeof(privPath));
+			break; case 'N': stateJoinNames = true;
 			break; case 'P': localPort = optarg;
+			break; case 'T': stateJoinTopic = true;
 			break; case 'W': clientPass = sensitive(optarg);
 			break; case 'a': auth = sensitive(optarg);
 			break; case 'h': host = optarg;