1App::Cmd::Subdispatch(3U)ser Contributed Perl DocumentatiAopnp::Cmd::Subdispatch(3)
2
3
4
6 App::Cmd::Subdispatch - an App::Cmd::Command that is also an App::Cmd
7
9 version 0.334
10
12 This module has a long-term perl support period. That means it will
13 not require a version of perl released fewer than five years ago.
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
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
47 Ricardo Signes <rjbs@semiotic.systems>
48
50 This software is copyright (c) 2021 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.36.0 2022-07-22 App::Cmd::Subdispatch(3)