Converting Getopt::Long into POD
IvorW
combobulus at xemaps.com
Mon Jan 29 11:21:29 GMT 2007
> -----Original Message-----
> From: Andrew Black [mailto:andrew-li at black1.org.uk]
> Sent: 29 January 2007 10:47
> To: London.pm Perl M[ou]ngers
> Subject: Converting Getopt::Long into POD
>
>
> Hi
> Does anyone know of a way of converting Getopt::Long parameters into
> half way decent POD.
> I am thinking along the lines of taking
> "wiggle=s" # filename of wiggle
> and producing
> -wiggle=filename filename of wiggle
> I almost started writing my own but then thought someome MUST
> have done
> it before.
>
> I dont mind having to cut an paste into the POD section of my PM, but
> trying to keep a POD and option in sync is a pain.
>
> I realise there are going to be various other Getopt::xxx
> methods, but
> follwing Aaron's talk at YAPC I am sticking with
> Getopt::Long, unless a
> very convincing argument persuades me otherwise.
I never use anything else but Getopt::Long these days.
Getopt::Long plays well with POD::Usage, which requires: =head1 OPTIONS
I guess if you intersperse your POD with code, you could place OPTIONS alongside the call to GetOptions
More information about the london.pm
mailing list