$> generate_perl_completion_script - Generates a perl script to do bash command completion.
$> generate_perl_completion_script command_name switch switch ...
The resulting script is output on STDOUT. The script will also output the complete command on STDERR.
The first argument is taken as the command name, the rest of the arguments as switches to create completion for. The arguments are taken from the command line and STDIN; this lets you create completion script like this
$> generate_perl_completion_script command option < options_file > my_script.pl
options_file contains an option perl line, without dashes.
or
$> generate_perl_completion_script command < command_and_options_file > my_scritp.pl
command_and_options_file first line is the command the rest is options, one perl line, without dashes.
None.
An error message is displayed and a non zero status is returned if the completion script can't be created.
Khemir Nadim ibn Hamouda CPAN ID: NKH mailto:nkh@cpan.org
To install Term::Bash::Completion::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::Bash::Completion::Generator
CPAN shell
perl -MCPAN -e shell install Term::Bash::Completion::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.