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.311
10
12 new
13 A hackish new that allows us to have an Command instance before they
14 normally exist.
15
16 prepare
17 my $subcmd = $subdispatch->prepare($app, @args);
18
19 An overridden version of "prepare" in App::Cmd::Command that performs a
20 new dispatch cycle.
21
22 app
23 $subdispatch->app;
24
25 This method returns the application that this subdispatch is a command
26 of.
27
28 choose_parent_app
29 $subcmd->prepare(
30 $subdispatch->choose_parent_app($app, $opt, $plugin),
31 @$args
32 );
33
34 A method that chooses whether the parent app or the subdispatch is
35 going to be "$cmd->app".
36
38 Ricardo Signes <rjbs@cpan.org>
39
41 This software is copyright (c) 2011 by Ricardo Signes.
42
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.12.3 2011-03-18 App::Cmd::Subdispatch(3)