in reply to [Solved] Pod::Usage - Can I have multiple Pods in one script?
I tried but failed to quickly find the docs for Pod::Usage version 1.33. If it supports -sections then I'd do something like this:
# get your command arguments and conditionally set $help_command # from your example: svn help commit # $help_command should contain 'commit' if (defined $help_command) { pod2usage(-verbose => 99, -sections => [ $help_command ] ); } else { pod2usage( ... ); # normal usage of help without $help_command defin +ed }
Don't forget to define a 'commit' section in your POD.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pod::Usage - Can I have multiple Pods in one script?
by Skeeve (Parson) on Jan 20, 2016 at 06:14 UTC |