Permalink
Browse files

Added --quiet option

  • Loading branch information...
1 parent 131ec2a commit d0e34dc76b776420abd9916a9b3dd78bdb851a09 @Leont committed Dec 28, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 inc/Library/Build.pm
View
8 inc/Library/Build.pm
@@ -26,7 +26,13 @@ sub new {
}
bless $self, $new_class;
$self->stash(verbose => 0);
- $self->register_argument(verbose => 0);
+ $self->register_argument(
+ verbose => 0,
+ quiet => sub () {
+ my $options = shift;
+ $options->{verbose}--;
+ },
+ );
return $self;
}

0 comments on commit d0e34dc

Please sign in to comment.