MouseX::Getopt how to

[email protected] Thu, 19 Sep 2013 21:18:15 +0000 (UTC)
Newsgroups perl.moose
Message-ID <457705595.3361735.1379625495967.JavaMail.root@sz0115a.emeryville.ca.mail.comcast.net>
I have a class that uses MouseX::Getopt with several attributes like this: 


build, build1, build2. 


The constructor dies with the message: Option build is ambiguous (build1, build2). 
However when using similar standalone code that uses Getopt::Long::GetOptions everything works fine. 


What Am I missing? 


--- 



use strict; 
use Getopt::Long; 


my %options; 


GetOptions(\%options, 'build=s', 'build1=s', 'build2=s') || die;