On Thu, Jun 24, 2010 at 05:41:16PM -0700, Karen Etheridge wrote: > On Thu, Jun 24, 2010 at 05:22:31PM -0700, Karen Etheridge wrote: > > why does this work: > > > > perl run.pl Foo > > (prints: I lived!) > > > > but this does not: > > > > perl run.pl Foo --help > > Another potential clue: this also succeeds: > > mx-run -I. Foo --help > > Although new_with_options() is being invoked just the same in all > circumstances, as far as I can tell.
SOLVED (as well as my previous post here: http://www.nntp.perl.org/group/perl.moose/2010/06/msg1675.html) Getopt::Long::Parser is being invoked with the wrong config options in MooseX::Getopt::Basic. the "no_auto_help" option must be passed, or Getopt::Long will see the --help flag and proceed to call pod2usage (with an undefined message), and exit. I will submit a ticket to the MooseX-Getopt queue, and a patch. -- "The greatest discovery of my generation is that human beings can alter their lives by altering their attitudes." - William James . . . . . Karen Etheridge, ka...@etheridge.ca GCS C+++$ USL+++$ P+++$ w--- M++ http://etheridge.ca/ PS++ PE-- b++ DI++++ e++ h(-)