README

NAME

Pod::Usage - extracts POD documentation to show usage information

SYNOPSIS

use Pod::Usage;

multi MAIN(Bool :$help!) {
	render-usage($=pod);
}

sub GENERATE-USAGE(Routine $main, |capture) {
	render-usage($=pod);
}

DESCRIPTION

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.

filter-usage(@pod-elements)

This filters out the text under the USAGE and manipulates it to a renderable POD sniplet.

render-usage(@pod-elements, :$renderer = Pod::To::Text)

This takes the pod sniplet as extracted by filter-usage and renders it using the given renderer.

SEE ALSO

  • as-cli-arguments

AUTHOR

Leon Timmermans [email protected]

COPYRIGHT AND LICENSE

Copyright 2022 Leon Timmermans

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

Pod::Usage v0.0.1

extracts POD documentation to show usage information

Authors

  • Leon Timmermans

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Pod::Usage

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.