Skip to content

Commit

Permalink
Reduce default arguments for Testing:_prepare_argstable()
Browse files Browse the repository at this point in the history
Touch-up t/htmlview.t
  • Loading branch information
jkeenan committed Jun 29, 2021
1 parent 17b6d63 commit c90f87c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ext/Pod-Html/t/htmlview.t
Expand Up @@ -27,6 +27,7 @@ $args = {
description => "html rendering",
expect => $expect_raw,
p2h => {
podpath => 't',
quiet => 1,
},
};
Expand Down
8 changes: 4 additions & 4 deletions ext/Pod-Html/t/lib/Testing.pm
Expand Up @@ -406,7 +406,10 @@ this key. Required.
Hash reference holding arguments passed to C<Pod::Html::pod2html()> (though
without the leading double hyphens (C<-->). See documentation for
F<Pod::Html>. Optional, but mostly necessary.
F<Pod::Html>. Optional, but mostly necessary. In particular, if a F<.pod>
file contains any C<LE<lt>E<gt>> tags, a C<podpath> element almost always
needs to be supplied with a colon-delimited list of directories from which to
begin a search for files containing POD.
=item * C<debug>
Expand Down Expand Up @@ -496,9 +499,6 @@ sub _prepare_argstable {
my %args_table = (
infile => $args->{infile},
outfile => $args->{outfile},
podpath => 't',
htmlroot => '/',
podroot => $args->{cwd},
);
my %no_arg_switches = map { $_ => 1 } @no_arg_switches;
if (defined $args->{p2h}) {
Expand Down

0 comments on commit c90f87c

Please sign in to comment.