Commit | Line | Data |
fc7ec1d9 |
1 | #!/usr/bin/perl -w |
2 | |
3 | use strict; |
4 | use Getopt::Long; |
5 | use Pod::Usage; |
6 | use Catalyst::Helper; |
7 | |
ef3250bc |
8 | my $help = 0; |
9 | my $nonew = 0; |
fc7ec1d9 |
10 | |
ef3250bc |
11 | GetOptions( 'help|?' => \$help, |
12 | 'nonew' => \$nonew ); |
fc7ec1d9 |
13 | |
14 | pod2usage(1) if ( $help || !$ARGV[0] ); |
15 | |
ef3250bc |
16 | my $helper = Catalyst::Helper->new({'.newfiles' => !$nonew}); |
fc7ec1d9 |
17 | pod2usage(1) unless $helper->mk_app( $ARGV[0] ); |
18 | |
19 | 1; |
20 | __END__ |
21 | |
22 | =head1 NAME |
23 | |
24 | catalyst - Bootstrap a Catalyst application |
25 | |
26 | =head1 SYNOPSIS |
27 | |
d459eb44 |
28 | catalyst.pl [options] application-name |
fc7ec1d9 |
29 | |
30 | Options: |
31 | -help display this help and exits |
ef3250bc |
32 | -nonew don't create a .new file where a file to be created exists |
fc7ec1d9 |
33 | |
34 | application-name has to be a valid Perl module name and can include :: |
35 | |
36 | Examples: |
d459eb44 |
37 | catalyst.pl My::App |
38 | catalyst.pl MyApp |
fc7ec1d9 |
39 | |
03a53815 |
40 | See also: |
41 | perldoc Catalyst::Manual |
42 | perldoc Catalyst::Manual::Intro |
43 | |
fc7ec1d9 |
44 | =head1 DESCRIPTION |
45 | |
46 | Bootstrap a Catalyst application. |
47 | |
03a53815 |
48 | =head1 SEE ALSO |
49 | |
50 | L<Catalyst>, L<Catalyst::Manual>, L<Catalyst::Manual::Intro>, |
51 | L<Catalyst::Test>, L<Catalyst::Request>, L<Catalyst::Response>, |
52 | L<Catalyst::Engine> |
53 | |
fc7ec1d9 |
54 | =head1 AUTHOR |
55 | |
a739692c |
56 | Sebastian Riedel, C<sri@oook.de> |
fc7ec1d9 |
57 | |
58 | =head1 COPYRIGHT |
59 | |
60 | Copyright 2004 Sebastian Riedel. All rights reserved. |
61 | |
62 | This library is free software. You can redistribute it and/or modify it under |
63 | the same terms as perl itself. |
64 | |
65 | =cut |