> 
> How do I take advantage of this? I turn it on but I do not know how to get
> it to display a help message. If I pass in -h --help it just ends. I am
> assuming I need some kind of pod file but I am unknowledgeable on how to
> write a pod file. Also how do I tell it what pod file to open?
> 
> Form perldoc Getopt::Long
> 
> Configuring Getopt::Long
>     Getopt::Long can be configured by calling subroutine
>     Getopt::Long::Configure(). This subroutine takes a list of quoted
>     strings, each specifying a configuration option to be enabled, e.g.
>     "ignore_case", or disabled, e.g. "no_ignore_case". Case does not
matter.
>     Multiple calls to Configure() are possible.
> 
> auto_help (default:disabled)
>                 Automatically provide support for the --help and -?
options
>                 if the application did not specify a handler for this
option
>                 itself.
> 
>                 Getopt::Long will provide a help message using module
>                 Pod::Usage. The message, derived from the SYNOPSIS POD
>                 section, will be written to standard output and processing
>                 will terminate.
> 
>                 "auto_help" will be enabled if the calling program
>                 explicitly specified a version number higher than 2.32 in
>                 the "use" or "require" statement.
> 

The key is in the docs you posted, specifically, "will provide a help
message using module Pod::Usage", I would suggest you have a look at the
docs for that module it should clear things up nicely. Particularly have
a look at the section "Recommended Use" that should help even more. I
have had good luck combining the two, though was unaware that this could
be handled automagically for me, very cool, I usually just code it in to
catch --help and -h and call pod2usage explicitly, god Perl+CPAN rocks...

I posted a template that takes advantage of this strategy late last year
if you want to check the archives, or e-mail me off list and I will fire
you a copy....

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to