Feed script to perldoc when called with -h.
Signed-off-by: Thomas Hochstein <thh@inter.net>
my %Options;
getopts('hvpdt:f:', \%Options);
if ($Options{'h'}) {
- print "$0 v $Version\nUsage: $0 [-hvpd] [-t <newsgroups>] [-f <faq>]\n";
+ exec ('perldoc', $0);
exit(0);
};
my ($Faq) = $Options{'f'} if ($Options{'f'});
=item B<-h> (help)
-Print out version and usage information on B<yapfaq> and exit.
+Print this man page and exit.
=item B<-v> (verbose)