Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

devel cover ambigous error

by david2008 (Scribe)
on Jun 02, 2013 at 09:17 UTC ( #1036564=perlquestion: print w/replies, xml ) Need Help??
david2008 has asked for the wisdom of the Perl Monks concerning the following question:


Sometimes when running cover - report i get the error

cover -report Option report is ambiguous (report_c0, report_c1, report_c2) Invalid command line options at Devel/Cover/Report/ lin +e 706.
What does it mean?
How can i avoid this?

Thanks, David

Replies are listed 'Best First'.
Re: devel cover ambigous error
by Corion (Pope) on Jun 02, 2013 at 09:24 UTC

    Have you read the documentation of the cover tool?

    You don't show how exactly you are invoking the cover tool to "sometimes" get the error (or warning) message. I guess that, as the message says, there are multiple interpretations for the given option of -report and the tool does not know which one you meant.

    I guess you need to be more explicit in your choice of options.

      I don't know why Getopt::Long gives this error instead of saying "Option report requires an argument", which is what it did before the report_c0, report_c1 and report_c2 options were added. But in any case, you should get that error message whenever you don't provide the required argument to the report option, and never when you do.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1036564]
Approved by marto
[Corion]: I found Android Studio quite nice as a Java IDE, but then, I didn't try anything serious with it
[chacham]: it is a nice ide. its just that upgrading it always causes issues with mismatched versions of whatever
[Corion]: chacham: Oh, yes, reinstalling all the SDK versions and Gradle and whatnot, yes, even in the short time I used it (2 weeks?) I felt that pain
[chacham]: right now im editing the versions in the applications gradle file to use a version it wants. sheesh.
[Corion]: Ow, "but you're not supposed to do that" ;)
[chacham]: with google, you kinda just gotta do what it recomends.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2017-03-29 08:02 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (344 votes). Check out past polls.