* cmd_flag parameter now works correctly.
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Strict.pm
index f845d69..3c9ef39 100644 (file)
@@ -6,9 +6,10 @@ with 'MooseX::Getopt';
 
 around '_compute_getopt_attrs' => sub {
     my $next = shift;
-    my ( $class, @args ) = @_;
-    grep { 
-        $_->isa("MooseX::Getopt::Meta::Attribute") 
+    my ($class, @args) = @_;
+    
+    return grep { 
+        $_->does('MooseX::Getopt::Meta::Attribute::Trait') 
     } $class->$next(@args);
 };