X-Git-Url: https://code.th-h.de/?p=usenet%2Fyapfaq.git;a=blobdiff_plain;f=yapfaq.pl;h=888a4f5a7f17cee2545d3a9b0f79627fd88c3ba8;hp=5b7160a27a92835946865b73fba1aba41c791530;hb=ae3b1b7906bb835b80b86143c0285965afa728d8;hpb=dbca4ad8a165e3d51fe4caed45f9a3ee04bf5db0 diff --git a/yapfaq.pl b/yapfaq.pl index 5b7160a..888a4f5 100644 --- a/yapfaq.pl +++ b/yapfaq.pl @@ -61,7 +61,7 @@ my ($TDY, $TDM, $TDD) = Today(); #TD: Today's date my %Options; getopts('hvpdt:f:', \%Options); if ($Options{'h'}) { - print "$0 v $Version\nUsage: $0 [-hvpd] [-t ] [-f ]\n"; + exec ('perldoc', $0); exit(0); }; my ($Faq) = $Options{'f'} if ($Options{'f'}); @@ -305,7 +305,7 @@ sub post { my $NewsConnection = Net::NNTP->new($NNTPServer, Reader => 1) or die "$0: E: Can't connect to news server '$NNTPServer'!\n"; - $NewsConnection->authinfo ($NNTPUser, $NNTPPass); + $NewsConnection->authinfo ($NNTPUser, $NNTPPass) if (defined($NNTPUser)); $NewsConnection->post(); $NewsConnection->datasend (@$ArticleR); $NewsConnection->dataend(); @@ -697,7 +697,7 @@ was posted and the second being the message ID of that incarnation. =item B<-h> (help) -Print out version and usage information on B and exit. +Print this man page and exit. =item B<-v> (verbose)