Name : perl-Getopt-Long-Subcommand
| |
Version : 0.104
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.52
| Date : 2024-08-05 19:15:34
|
Group : Unspecified
| Source RPM : perl-Getopt-Long-Subcommand-0.104-1.52.src.rpm
|
Size : 0.05 MB
| |
Packager : (none)
| |
Summary : Process command-line options, with subcommands and completion
|
Description :
This module extends Getopt::Long with subcommands and tab completion ability.
How parsing works: First we call \'Getopt::Long::GetOptions\' with the top-level options, passing through unknown options if we have subcommands. Then, subcommand name is taken from the first argument. If subcommand has options, the process is repeated. So \'Getopt::Long::GetOptions\' is called once at every level.
Completion: Scripts using this module can complete themselves. Just put your script somewhere in your \'PATH\' and run something like this in your bash shell: \'complete -C script-name script-name\'. See also shcompgen to manage completion scripts for multiple applications easily.
How completion works: Environment variable \'COMP_LINE\' or \'COMMAND_LINE\' (for tcsh) is first checked. If it exists, we are in completion mode and \'AATTARGV\' is parsed/formed from it. We then perform parsing to get subcommand names. Finally we hand it off to Complete::Getopt::Long.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-G/openSUSE_Tumbleweed/noarch |