[tin-dev] [tin] mention -t in -h

Urs Janßen urs at tin.org
Sat Jan 20 17:25:26 CET 2024


-t timeout was missing in the -h help/usage message

=== modified file 'include/extern.h'
--- old/include/extern.h	2024-01-16 17:30:42 +0000
+++ new/include/extern.h	2024-01-20 16:12:47 +0000
@@ -1603,6 +1603,7 @@
 	extern constext txt_usage_force_ipv6[];
 #	endif /* INET6 */
 	extern constext txt_usage_newsserver[];
+	extern constext txt_usage_nntp_timeout[];
 	extern constext txt_usage_port[];
 	extern constext txt_usage_read_news_remotely[];
 #	ifdef NNTPS_ABLE

=== modified file 'src/lang.c'
--- old/src/lang.c	2024-01-09 13:51:47 +0000
+++ new/src/lang.c	2024-01-20 16:22:15 +0000
@@ -1214,6 +1214,9 @@
 constext txt_usage_mail_new_news[] = N_("  -N       mail new news to your posts (batch mode)");
 constext txt_usage_mail_new_news_to_user[] = N_("  -M user  mail new news to specified user (batch mode)");
 constext txt_usage_newsrc_file[] = N_("  -f file  subscribed to newsgroups file [default=%s]");
+#ifdef NNTP_ABLE
+	constext txt_usage_nntp_timeout[] = N_("  -t sec   override nntp_read_timeout_secs setting [default=%d]");
+#endif /* NNTP_ABLE */
 constext txt_usage_no_posting[] = N_("  -x       no-posting mode");
 constext txt_usage_post_article[] = N_("  -w       post an article and exit");
 constext txt_usage_post_postponed_arts[] = N_("  -o       post all postponed articles and exit");

=== modified file 'src/main.c'
--- old/src/main.c	2023-11-29 20:02:23 +0000
+++ new/src/main.c	2024-01-20 16:17:32 +0000
@@ -1119,6 +1119,7 @@
 	error_message(2, _(txt_usage_savedir), tinrc.savedir);
 	error_message(2, _(txt_usage_save_new_news));
 #ifdef NNTP_ABLE
+	error_message(2, _(txt_usage_nntp_timeout), TIN_NNTP_TIMEOUT);
 #	ifdef NNTPS_ABLE
 	error_message(2, _(txt_usage_use_nntps));
 #	endif /* NNTPS_ABLE */




More information about the tin-dev mailing list