Commits

Toby Inkster committed 49270e3

ah, the benefits of test coverage...!

  • Participants
  • Parent commits 7240916

Comments (0)

Files changed (1)

File lib/MooX/Struct.pm

 	
 	my $processor = 'MooX::Struct::Processor'->new;
 	while (@args and $args[0] =~ /^-(.+)$/) {
-		$processor->flags->{ lc($1) } = !!shift;
+		$processor->flags->{ lc($1) } = !!shift @args;
 	}
 
 	my $subname = undef;