NAME
$> generate_perl_completion_script - Generates a perl script to do bash command completion.
USAGE
$> 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.
OPTIONS
None.
EXIT STATUS
An error message is displayed and a non zero status is returned if the completion script can't be created.
AUTHOR
Khemir Nadim ibn Hamouda
CPAN ID: NKH
mailto:nkh@cpan.org