--- lmtp2nntp.c 2001/08/29 14:58:21 1.34
+++ lmtp2nntp.c 2001/08/30 08:35:44 1.35
@@ -130,8 +130,8 @@
*/
fprintf(stderr,
"USAGE: %s "
- "[-d deliverymode] [-g groupmode] [-h host[:port]] "
- "[-m maxmessagesize] [-t tracefile] [-v] [-V] newsgroup [newsgroup ...]"
+ "[-V] [-d deliverymode] [-g groupmode] [-h host[:port]] "
+ "[-m maxmessagesize] [-t tracefile] [-v] newsgroup [newsgroup ...]"
"\n",
command);
return;
@@ -205,8 +205,12 @@
*/
/* read in the arguments */
- while ((i = getopt(argc, argv, "d:g:h:m:t:vV")) != -1) {
+ while ((i = getopt(argc, argv, "Vd:g:h:m:t:v")) != -1) {
switch (i) {
+ case 'V': /*POD [B<-V>] (version)*/
+ fprintf(stdout, "%s\n", lmtp2nntp_version.v_gnu);
+ exit(0);
+ break;
case 'd': /*POD [B<-d> I<deliverymode>] */
if (strcasecmp(optarg, "post") == 0)
ctx->option_deliverymode = DELIVERYMODE_POST;
@@ -259,7 +263,7 @@
exit(ERR_EXECUTION);
}
break;
- case 'h': /*POD [B<-h> I<host>[I<:port>]] */
+ case 'h': /*POD [B<-h> I<host>[I<:port>][,I<host>[I<:port>], ...]] */
if (argz_create_sep(optarg, ',', &azHosts, &asHosts) != 0)
exit(ERR_EXECUTION);
cp = NULL;
@@ -320,10 +324,6 @@
case 'v': /*POD [B<-v>] (verbose)*/
ctx->option_verbose = TRUE;
break;
- case 'V': /*POD [B<-V>] (version)*/
- fprintf(stdout, "%s\n", lmtp2nntp_version.v_gnu);
- exit(0);
- break;
case '?':
default:
usage(progname);
|