Subject: | Mistake in example? |
This example doesn't seem right. Should `cat mycompleter` be `cat foo-complete`?
% cat mycompleter
#!/usr/bin/perl
use Complete::Tcsh qw(parse_cmdline format_completion);
use Complete::Util qw(complete_array_elem);
my ($words, $cword) = parse_cmdline();
my $res = complete_array_elem(array=>[qw/--help --verbose --version/], word=>$words->[$cword]);
print format_completion($res);
% complete -C foo-complete foo
% foo --v<Tab>
--verbose --version