Re: MouseX::Getopt how to
[email protected] (Hank Sola) Sat, 21 Sep 2013 12:47:30 -0400
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
It sounds like you have the auto abbrev option turned on. But even so, if "build" is also an option that error message does not make sense. -Hank On Sep 19, 2013, at 5:18 PM, [email protected] wrote: > 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; > > > > >