Skip Menu |

This queue is for tickets about the MooseX-Getopt CPAN distribution.

Report information
The Basics
Id: 47865
Status: resolved
Priority: 0/
Queue: MooseX-Getopt

People
Owner: Nobody in particular
Requestors: jean [...] veronis.fr
Cc:
AdminCc:

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



Subject: Help and usage don't seem to work with Getopt::Long::Descriptive
When using Getopt::Long::Descriptive, -? --help and --usage are not recognized and do not behave as described in documentation : If Getopt::Long::Descriptive is installed and any of the following command line params are passed, the program will exit with usage information.... --? --help --usage Example : test.pl --help Unknown option: help usage: test.pl [long options...] --number Perl version 5.8.8. Test files appended.
Subject: MyApp.pm
package MyApp; use Moose; with 'MooseX::Getopt'; has 'number' => ( is => 'rw', isa => 'Int' ); 1;
Subject: test.pl
#!/usr/bin/perl -w use MyApp; my $app = MyApp->new_with_options();
From: bitcard [...] froods.org
Hey Jean, you may find some use in the code I posted in the bug https://rt.cpan.org/Public/Bug/Display.html?id=57683 -- which I think describes a similar issue. On Tue Jul 14 06:09:03 2009, jeanv wrote: Show quoted text
> When using Getopt::Long::Descriptive, -? --help and --usage are not > recognized and do not behave as described in documentation :
From: bitcard [...] froods.org
Fixed in branch topic/save_usage_obj.
Fixed in 0.31. Thanks for the bug report.