Skip Menu |

This queue is for tickets about the CLI-Osprey CPAN distribution.

Report information
The Basics
Id: 125793
Status: new
Priority: 0/
Queue: CLI-Osprey

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

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



Subject: CLI::Osprey::Descriptive::Usage must implement a die method
Internally, Getopt::Long::Descriptive may call $usage_class->die. Since CLI::Osprey::Descriptive::Usage doesn't implement it, that leads to a very confusing error. I note that it's also missing other methods that GLD::Usage provides, like warn and maybe others. Looking at GLD::Usage it seems to you _really_ should subclass this rather than reimplementing it, but if you don't then I think you have to implement every public method that GLD::Usage itself has.
I should say how I found this ... Implement a CLI class using CLI::Osprey, then invoke it with an unknown CLI option and watch it blow up in a very confusing way.