/usr/share/doc/libgetopt-mixed-perl/README is in libgetopt-mixed-perl 1.008-10.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | Getopt::Mixed 1.008
Copyright 1995 Christopher J. Madsen
This module provides GNU-style option processing for Perl 5 scripts,
with both long and short options. Please see the documentation at the
end of the module for instructions on its use and licensing
restrictions.
You can use Makefile.PL to install Getopt::Mixed, but all you really
need to do is copy lib/Getopt/Mixed.pm to your Perl library.
tstopt1 and tstopt2 are sample scripts using Getopt::Mixed. They
accept the following options and associated arguments:
-a, --apples=N Mandatory real number argument
--apricots=N Mandatory real number argument
-b[N] Optional integer argument
-c No arguments
-d[STRING] Optional string argument
-f, --file=STRING Mandatory string argument
--pears=N Mandatory real number argument
-?, --help No arguments
-V, --version No arguments
Since these are just sample scripts, the options don't actually mean
anything. tstopt1 demonstrates the simple method of using
Getopt::Mixed, and tstopt2 demonstrates the flexible method.
|