Name : perl-Getopt-Config-FromPod
| |
Version : 0.0.4
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 16:50:04
|
Group : Development/Libraries/Perl
| Source RPM : perl-Getopt-Config-FromPod-0.0.4-lp154.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Extract getopt configuration from POD
|
Description :
There are many and many \'Getopt::*\' modules on CPAN. Is this module yet another option parsing module?
*NO.*
This module is NOT to be another option parsing module but to be a companion of the modules.
The \'Getopt::*\' modules try to solve developers\' preference of option parsing. So, it is likely to be impossible to provide all-in-one option parsing modules. One of the common problems in option parsing is consistency among:
* 1
Availability in actual process
* 2
Document shown by, typically, -h option
* 3
Document shown by perldoc
Some modules such as Getopt::Long::Descriptive solves 1 and 2. Few modules such as Getopt::Auto solves 1, 2 and 3. So, if you want to keep all consistencies you need to stick some specific \'Getopt::*\' modules.
This module does not stick to specific \'Getopt::*\' module and provide a way to specify 1, 2 and 3 in POD.
To tell the truth, this module just collects option specifications distributed in POD. So, dupulication between POD documentation and specification are NOT eliminated. However, I believe it has some advantages to enable us to describe documentation and specification at the same place.
Configuration is described as POD section \'getopt\' like the follwings:
=for getopt \'v:\'
=for getopt \'port|p=i\'
=for getopt [ \'port|p=i\', \"the port to connect to\", { default => 79 } ]
You can also use =begin/=end pair but it is rarely necessary and useful.
=begin getopt [ \'port|p=i\', \"the port to connect to\", { default => 79 } ] =end getopt
They are eval\'ed so you can describe array references, hash references and so on as above.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-G/15.4/noarch |