summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2018-06-23 19:59:14 +0200
committerPatrick Spek <p.spek@tyil.nl>2018-06-23 19:59:14 +0200
commite69c96c5aa5769db30eb3dc632cb8ffa47296286 (patch)
tree4cce7e3e049e348f6435320286ec14795c7722a3 /lib
parent4a2b457746736b8075f86145e0e3fed8473606a6 (diff)
downloadPod::To::Pager-e69c96c5aa5769db30eb3dc632cb8ffa47296286.tar.gz
Pod::To::Pager-e69c96c5aa5769db30eb3dc632cb8ffa47296286.tar.bz2
Add p6man utility to the module
Diffstat (limited to 'lib')
-rw-r--r--lib/Pod/To/Pager.pm68
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Pod/To/Pager.pm6 b/lib/Pod/To/Pager.pm6
index 8da16bf..4f1b742 100644
--- a/lib/Pod/To/Pager.pm6
+++ b/lib/Pod/To/Pager.pm6
@@ -13,7 +13,13 @@ class Pod::To::Pager
return;
}
- multi method render($pod)
+ multi method render(Any:U)
+ {
+ say "No usable Perl 6 Pod found in the given file";
+ exit 1;
+ }
+
+ multi method render(Any:D $pod)
{
print handle-pod($pod);
}