Name : perl-Getopt-Long-Complete
| |
Version : 0.317.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 150500.1.1
| Date : 2024-08-10 22:51:37
|
Group : Unspecified
| Source RPM : perl-Getopt-Long-Complete-0.317.0-150500.1.1.src.rpm
|
Size : 0.06 MB
| |
Packager : https://www_suse_com/
| |
Summary : Drop-in replacement for Getopt::Long, with shell tab completion
|
Description :
This module provides a quick and easy way to add shell tab completion feature to your scripts, including scripts already written using the venerable Getopt::Long module. Currently bash and tcsh are directly supported; fish and zsh are also supported via shcompgen.
This module is basically just a thin wrapper for Getopt::Long. Its \'GetOptions\' function just checks for COMP_LINE/COMP_POINT environment variable (in the case of bash) or COMMAND_LINE (in the case of tcsh) before passing its arguments to \'Getopt::Long\'\'s \'GetOptions\'. If those environment variable(s) are defined, completion reply will be printed to STDOUT and then the program will exit. Otherwise, Getopt::Long\'s GetOptions is called.
To keep completion quick, you should do \'GetOptions()\' or \'GetOptionsWithCompletion()\' as early as possible in your script. Preferably before loading lots of other Perl modules.
To activate tab completion in bash, put your script somewhere in \'PATH\' and execute this in the shell or put it into your bash startup file (e.g. \'/etc/bash.bashrc\' or \'~/.bashrc\'). Replace \'delete-user\' with the actual script name:
complete -C delete-user delete-user
For tcsh:
complete delete-user \'p/*/`delete-user`/\'
For other shells (but actually for bash too) you can use shcompgen.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_15_SP5/noarch |