Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: deriving usage from Getopts::Long

by QM (Parson)
on Jul 29, 2005 at 15:33 UTC ( [id://479445]=note: print w/replies, xml ) Need Help??


in reply to deriving usage from Getopts::Long

I second the use of Getopt::Declare.

I've tried to do a similar thing with Getopt::Long and others, but it never worked out nicely. There's always duplicate data, and it's hard to keep the comments in synch with the options. Getopt::Declare updates the options when I change the usage statement.

I created a toy example for -x accepts up to 3 additional arguments at Re: -x accepts up to 3 additional arguments.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://479445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-20 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found