shithub: vdict

Download patch

ref: 58d42407b1ad3ae4a4a06b097deb01d2cc2a883e
parent: 4b4c40d3bfac59285d82260ba545087c087ddd17
author: phil9 <[email protected]>
date: Tue Jan 24 08:08:32 EST 2023

default to dict.org instead of requiring user to specify a server

--- a/vdict.c
+++ b/vdict.c
@@ -156,7 +156,7 @@
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-b] -h <host> [-p <port>]\n", argv0);
+	fprint(2, "usage: %s [-b] [-h <host>] [-p <port>]\n", argv0);
 	exits("usage");
 }
 
@@ -178,7 +178,7 @@
 		{ nil, nil, CHANEND },
 	};
 
-	host = nil;
+	host = "dict.org";
 	port = 2628;
 	reverse = 0;
 	ARGBEGIN{