X-Git-Url: https://code.th-h.de/?p=usenet%2Fyapfaq.git;a=blobdiff_plain;f=yapfaq.pl;h=084c77edc2acb5073c9d44cd2ab471951b3adc39;hp=bce96847517acc2268cb1f455804b138745e7e0b;hb=a052296f3b55e5f07e7d70b53c988721b129b0bc;hpb=d69ba0bb348ffe87f0ead8497467b0aec5a10751 diff --git a/yapfaq.pl b/yapfaq.pl index bce9684..084c77e 100644 --- a/yapfaq.pl +++ b/yapfaq.pl @@ -59,9 +59,14 @@ use Getopt::Std; my ($TDY, $TDM, $TDD) = Today(); #TD: Today's date my %Options; -getopts('hvpdt:f:', \%Options); +getopts('Vhvpdt:f:', \%Options); +if ($Options{'V'}) { + print "$0 v $Version\nCopyright (c) 2003 Marc Brockschmidt \nCopyright (c) 2010 Thomas Hochstein \n"; + print "This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.\n"; + exit(0); +} 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'}); @@ -695,9 +700,13 @@ was posted and the second being the message ID of that incarnation. =over 3 +=item B<-V> (version) + +Print out version and copyright information on B and exit. + =item B<-h> (help) -Print out version and usage information on B and exit. +Print this man page and exit. =item B<-v> (verbose)