projects
/
gitmo/MooseX-Getopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
fd4980b
)
* Look only one class at default.
Piotr Roszatycki [Tue, 11 Nov 2008 14:56:58 +0000 (14:56 +0000)]
lib/MooseX/Getopt.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Getopt.pm
b/lib/MooseX/Getopt.pm
index
a915d5a
..
1e7c91a
100644
(file)
--- a/
lib/MooseX/Getopt.pm
+++ b/
lib/MooseX/Getopt.pm
@@
-48,7
+48,9
@@
sub new_with_options {
my $getopt = defined $params{getopt}
? $params{getopt}
- : $class->_default_getopt_session->new;
+ : $class->_default_getopt_session->new(
+ classes_filter => sub { $_ eq $class }
+ );
my %options = $getopt->options;