1App::Cmd::Subdispatch(3U)ser Contributed Perl DocumentatiAopnp::Cmd::Subdispatch(3)
2
3
4

NAME

6       App::Cmd::Subdispatch - an App::Cmd::Command that is also an App::Cmd
7

VERSION

9       version 0.335
10

PERL VERSION

12       This library should run on perls released even a long time ago.  It
13       should work on any version of perl released in the last five years.
14
15       Although it may work on older versions of perl, no guarantee is made
16       that the minimum required version will not be increased.  The version
17       may be increased for any reason, and there is no promise that patches
18       will be accepted to lower the minimum required perl.
19

METHODS

21   new
22       A hackish new that allows us to have an Command instance before they
23       normally exist.
24
25   prepare
26         my $subcmd = $subdispatch->prepare($app, @args);
27
28       An overridden version of "prepare" in App::Cmd::Command that performs a
29       new dispatch cycle.
30
31   app
32         $subdispatch->app;
33
34       This method returns the application that this subdispatch is a command
35       of.
36
37   choose_parent_app
38         $subcmd->prepare(
39           $subdispatch->choose_parent_app($app, $opt, $plugin),
40           @$args
41         );
42
43       A method that chooses whether the parent app or the subdispatch is
44       going to be "$cmd->app".
45

AUTHOR

47       Ricardo Signes <cpan@semiotic.systems>
48
50       This software is copyright (c) 2022 by Ricardo Signes.
51
52       This is free software; you can redistribute it and/or modify it under
53       the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.38.0                      2023-07-20          App::Cmd::Subdispatch(3)
Impressum