Complete-Getopt-Long

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


        If you turn off bundling, completion of short-letter options won't
        support bundling (e.g. "-b<tab>" won't add more single-letter
        options), but single-dash multiletter options can be recognized.
        Currently only those specified with a single dash will be completed.
        For example if you have "-foo=s" in your option specification,
        "-f<tab>" can complete it.

        This can be used to complete old-style programs, e.g. emacs which
        has options like "-nw", "-nbc" etc (but also have double-dash
        options like "--no-window-system" or "--no-blinking-cursor").

    *   completion => *code*

        Completion routine to complete option value/argument.

        Completion code will receive a hash of arguments (%args) containing
        these keys:

        *   "type" (str, what is being completed, either "optval", or "arg")

lib/Complete/Getopt/Long.pm  view on Meta::CPAN

            description => <<'_',

If you turn off bundling, completion of short-letter options won't support
bundling (e.g. `-b<tab>` won't add more single-letter options), but single-dash
multiletter options can be recognized. Currently only those specified with a
single dash will be completed. For example if you have `-foo=s` in your option
specification, `-f<tab>` can complete it.

This can be used to complete old-style programs, e.g. emacs which has options
like `-nw`, `-nbc` etc (but also have double-dash options like
`--no-window-system` or `--no-blinking-cursor`).

_
        },
    },
    result_naked => 1,
    result => {
        schema => ['any*' => of => ['hash*', 'array*']],
        description => <<'_',

You can use `format_completion` function in <pm:Complete::Bash> module to format

lib/Complete/Getopt/Long.pm  view on Meta::CPAN

=item * B<bundling> => I<bool> (default: 1)

If you turn off bundling, completion of short-letter options won't support
bundling (e.g. C<< -bE<lt>tabE<gt> >> won't add more single-letter options), but single-dash
multiletter options can be recognized. Currently only those specified with a
single dash will be completed. For example if you have C<-foo=s> in your option
specification, C<< -fE<lt>tabE<gt> >> can complete it.

This can be used to complete old-style programs, e.g. emacs which has options
like C<-nw>, C<-nbc> etc (but also have double-dash options like
C<--no-window-system> or C<--no-blinking-cursor>).

=item * B<completion> => I<code>

Completion routine to complete option valueE<sol>argument.

Completion code will receive a hash of arguments (C<%args>) containing these
keys:

=over



( run in 0.242 second using v1.01-cache-2.11-cpan-4d50c553e7e )