Help language development. Donate to The Perl Foundation
Pod::Usage - extracts POD documentation to show usage information
use Pod::Usage; multi MAIN(Bool :$help!) { render-usage($=pod); } sub GENERATE-USAGE(Routine $main, |capture) { render-usage($=pod); }
Pod::Usage is a helper module for generating a usage message that isn't generated from sub MAIN
, but instead taken from the USAGE section of your documentation.
This filters out the text under the USAGE
and manipulates it to a renderable POD sniplet.
This takes the pod sniplet as extracted by filter-usage
and renders it using the given renderer.
Leon Timmermans [email protected]
Copyright 2022 Leon Timmermans
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.