helpers now create .new files where files to be created already exist; -nonew option...
[catagits/Catalyst-Runtime.git] / script / catalyst.pl
CommitLineData
fc7ec1d9 1#!/usr/bin/perl -w
2
3use strict;
4use Getopt::Long;
5use Pod::Usage;
6use Catalyst::Helper;
7
ef3250bc 8my $help = 0;
9my $nonew = 0;
fc7ec1d9 10
ef3250bc 11GetOptions( 'help|?' => \$help,
12 'nonew' => \$nonew );
fc7ec1d9 13
14pod2usage(1) if ( $help || !$ARGV[0] );
15
ef3250bc 16my $helper = Catalyst::Helper->new({'.newfiles' => !$nonew});
fc7ec1d9 17pod2usage(1) unless $helper->mk_app( $ARGV[0] );
18
191;
20__END__
21
22=head1 NAME
23
24catalyst - Bootstrap a Catalyst application
25
26=head1 SYNOPSIS
27
d459eb44 28catalyst.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
46Bootstrap a Catalyst application.
47
03a53815 48=head1 SEE ALSO
49
50L<Catalyst>, L<Catalyst::Manual>, L<Catalyst::Manual::Intro>,
51L<Catalyst::Test>, L<Catalyst::Request>, L<Catalyst::Response>,
52L<Catalyst::Engine>
53
fc7ec1d9 54=head1 AUTHOR
55
a739692c 56Sebastian Riedel, C<sri@oook.de>
fc7ec1d9 57
58=head1 COPYRIGHT
59
60Copyright 2004 Sebastian Riedel. All rights reserved.
61
62This library is free software. You can redistribute it and/or modify it under
63the same terms as perl itself.
64
65=cut