FAQ
I'm confused about the 'options' to script/foo_create.pl . Nothing
seems to work as documented.

Run without any parameters foo_create.pl says
Usage:
foo_create.pl [options] model|view|controller name [helper] [options]
Options:
--force don't create a .new file where a file to
be created exists
--mechanize use Test::WWW::Mechanize::Catalyst for
tests if available
--help display this help and exits
Examples:
foo_create.pl controller My::Controller
foo_create.pl -mechanize controller My::Controller

Note already the disagreement between "--mechanize" and "-mechanize".

When I try either of these forms before the 'controller' or after all
other parameters I get an error apparently saying the options were
not interpreted correctly. Such as
Unknown option: m
Unknown option: e
Unknown option: c
Unknown option: a (note absence of 'h' !)
Unknown option: n
Unknown option: i
Unknown option: z
Unknown option: e
or
Couldn't load helper
"Catalyst::Helper::Controller::--mechanize", "syntax error at (eval
276) line 1, near "require Catalyst::Helper::Controller::--""

Why aren't options being understood as documented? For instance,
"--force" also explodes. But "-h" just shows the help without exploding. >-(

I see comptest.tt has sample code for including mechanize - is this
valid for controllers?

(Note: I'm up-to-date on all Catalyst components according to CPAN,
e.g. Catalyst::Devel 1.26)

Search Discussions

  • Tomas Doran at May 22, 2010 at 10:18 am

    On 19 Jan 2010, at 21:22, Thomas L. Shinnick wrote:

    I'm confused about the 'options' to script/foo_create.pl . Nothing
    seems to work as documented. <snip>
    Note already the disagreement between "--mechanize" and "-mechanize".
    Fixed in trunk in r13297.
    Couldn't load helper "Catalyst::Helper::Controller::--
    mechanize", "syntax error at (eval 276) line 1, near "require
    Catalyst::Helper::Controller::--""
    Also fixed in trunk.
    Why aren't options being understood as documented? For instance, "--
    force" also explodes. But "-h" just shows the help without
    exploding. >-(
    Also fixed in trunk :)

    Cheers
    t0m

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJan 19, '10 at 9:22p
activeMay 22, '10 at 10:18a
posts2
users2
websitecatalystframework.org
irc#catalyst

2 users in discussion

Thomas L. Shinnick: 1 post Tomas Doran: 1 post

People

Translate

site design / logo © 2022 Grokbase