Re: MooseX::Getopt and 'required'

2009-03-24 Thread mikhail maluyk
Hi, Something like this should work package App::Base; use Moose; has 'db_user' => ( isa => 'Str' , is => 'rw' ); has 'db_pass' => ( isa => 'Str' , is => 'rw' ); package App::FromCmd; use Moose; extends 'App::Base'; with 'MooseX::Getopt'; has '+db_user' => ( required => 1 ); has '+db_pass

MooseX::Getopt and 'required'

2009-03-24 Thread Zbigniew Lukasiak
I am writing a library with a command line utility (this if for generating FormHandler forms) - it takes as a parameter a DBIx::Class::Schema. Obviously for the for the command line utility I cannot pass the schema object itself - but instead I pass the connection params and the schema class name