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 'bounce.c')
-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;
ze input.cJune McEnroe 2019-02-22Fix name of <raw> window in man pageJune McEnroe 2019-02-22Rename global tags with angle bracketsJune McEnroe 2019-02-22Show status window while connectingJune McEnroe 2019-02-22Reorganize UI code for the umpteenth timeJune McEnroe It's actually in a good state now, I think. 2019-02-21Replace "view" with "window"June McEnroe I think originally I didn't want to use the same word as curses WINDOW but it's really much clearer for the user if they're just called windows. UI code probably needs yet another rewrite though. Still feels messy. 2019-02-21Remove ROT13June McEnroe It's just not convenient when it can only do the whole line... 2019-02-21Clean up man pageJune McEnroe 2019-01-26Draw UI before connectingJune McEnroe Otherwise the "Traveling" message isn't visible while connecting. 2019-01-25Avoid unused variable warnings with getyxJune McEnroe 2019-01-25Add GNU/Linux build instructionsJune McEnroe