Pandoc::Filter::Usage - print filter documentation from embedded Pod
This module provides the function pod2usage as replacement for pod2usage to get and print documentation of a filter script. The function is called automatically by "pandoc_filter" in Pandoc::Filter. If your filter does not use this function, execute pod2usage like this:
pod2usage
my %opt; Getopt::Long::GetOptions(\%opt, 'help|?'); Pandoc::Filter::Usage::pod2usage( to => $ARGV[0] ) if $opt{help};
Print filter documentation parsed with Pod::Simple::Pandoc from its script and exit.
Output format (json, markdown, html...) to print documentation with pandoc. By default the documentation is printed with Pod::Text instead.
json
markdown
html
The desired exit status to pass to the exit function or the string "NOEXIT" to let the function return without calling exit.
Pod::Usage
To install Pandoc::Elements, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pandoc::Elements
CPAN shell
perl -MCPAN -e shell install Pandoc::Elements
For more information on module installation, please visit the detailed CPAN module installation guide.