Name : perl-Getopt-Awesome
| |
Version : 0.1.3
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.482.1
| Date : 2023-07-20 17:01:50
|
Group : Development/Libraries/Perl
| Source RPM : perl-Getopt-Awesome-0.1.3-lp155.482.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Let your modules define/export their own arguments
|
Description :
First of, this module was very inspired in the Getopt::Modular CPAN package however at the moment of using it I found it was giving me \"more\" of what I was looking so I thought I could borrow some ideas of it, make it lighter and add some of the features/functionalities I was looking for and so this is the result: a module I\'ve been using every day for all my perl scripts and modules, though would be nice to give it to the Perl community.
Now, this module is handy if you want to give your modules the freedom of definining their own \"getopt options\" so next time they get called (or *used*) the options will be available in the form of arguments (--foo, --bar).
Another feature of this module is that when user asks for help (-h or --help) a usage will be printed by showing all the options available by the current perl script and by all the modules in use.
All options are prefixed by the package name in lowercase where namespace separator (::) gets replaced by a dash (-), so --help will return:
--foo-bar-option Description. --foo-bar-option2 Description 2.
and so on..
See the SYNOPSYS section for examples.
*Notes:*
* The use of short aliases is not supported for options defined in modules, this feature (provided by Getopt) is only available in the main script (.pl)
* In your perl script (.pl) remember to call parse_opts otherwise the values of the options you request might be undef, empty or have their default values.
* _Remember:_ ARGV is ONLY parsed when parse_opt is called.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-G/15.5/noarch |