Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 21098
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: DROLSKY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.58
Fixed in: (no value)



Subject: cover has confusing docs for -report
When I run cover --help it tells me the following: -report report_format - report format required (default html) But if a format is required why is there a default? If I run "cover -report" it fails with a somewhat obscure error: Bad option at /usr/local/lib/perl/5.8.7/Devel/Cover/Report/Html_minimal.pm line 675 I guess that makes this two bug reports in one. Sorry.
On Mon Aug 21 02:48:51 2006, DROLSKY wrote: Show quoted text
> When I run cover --help it tells me the following:
For the record, I'm using Devel::Cover 0.58.
Subject: Re: [rt.cpan.org #21098] cover has confusing docs for -report
Date: Sat, 30 Dec 2006 02:38:17 +0100
To: via RT <bug-Devel-Cover [...] rt.cpan.org>
From: Paul Johnson <paul [...] pjcj.net>
On Mon, Aug 21, 2006 at 02:48:52AM -0400, via RT wrote: Show quoted text
> When I run cover --help it tells me the following: > > -report report_format - report format required (default html) > > But if a format is required why is there a default?
That's an unclear description, I'm afraid. I wanted to say that it is the format of the report required by the user. I've just dropped the word "required". Show quoted text
> If I run "cover -report" it fails with a somewhat obscure error: > > Bad option at > /usr/local/lib/perl/5.8.7/Devel/Cover/Report/Html_minimal.pm line 675
This is a little tricky. There are general options to cover, and each report can take extra options specific to the report. Unknown options are passed though to the report for it to deal with. I probably need to completely overhaul how that works, but for now I've just changed the error message to something hopefully a little more clear. Show quoted text
> I guess that makes this two bug reports in one. Sorry.
That's fine - two patches in one ;-) http://pjcj.sytes.net/svnweb/Devel::Cover/revision/?rev=187 -- Paul Johnson - paul@pjcj.net http://www.pjcj.net