Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Pod::Help released

by Beechbone (Friar)
on Oct 19, 2004 at 18:42 UTC ( #400627=perlnews: print w/replies, xml ) Need Help??

Pod::Help finally makes POD useful for scripts.

Just write the documentation for your script as POD and then add use Pod::Help qw(--help -h); to it. Now whenever someone calls your script with '-h' or '--help' (s)he will get your POD.

And if you don't want to distribute a module with your script (or require the user to install it), no problem. Pod::Help's code is so short you can easily copy it to your script, too.


Search, Ask, Know

Replies are listed 'Best First'.
Re: Pod::Help released
by cchampion (Curate) on Oct 19, 2004 at 19:29 UTC

    Not to rain on your parade, but doesn't Pod::Usage do the same thing?

      Not exactly, Pod::Usage is a whole lot bigger. My module is intended to be very lightweight easy to use.

      Search, Ask, Know

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2023-12-02 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (18 votes). Check out past polls.

    Notices?