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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Pod::Help released
by cchampion (Curate) on Oct 19, 2004 at 19:29 UTC | |
by Beechbone (Friar) on Oct 20, 2004 at 10:52 UTC |