Hi all,

Apparently, the 'quiet' option excludes 'verbose' only because of this 
arrangement:

  sub log_info { print @_ unless shift()->quiet }
  sub log_verbose { shift()->log_info(@_) if $_[0]->verbose }

So this implies 'quiet overrides verbose', but the two are never 
explicitly linked ala "sub verbose { ... return if $self->quiet; ...}".

That is, referencing $self->verbose anywhere outside of log_verbose() is 
likely to "do the wrong thing".

Example:  I notice that $self->verbose appears in creating the tar -v 
option of make_tarball().  This means you'll get noise from tar even if 
$self->quiet.

Any objections to explicitly linking them?

--Eric
-- 
"It ain't those parts of the Bible that I can't understand that
bother me, it's the parts that I do understand."
--Mark Twain
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to