Skip to content

Commit

Permalink
Add -v support for update option, fix #105
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniogamiz committed Aug 26, 2019
1 parent cbddbd2 commit bded16f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Perl6/Documentable/CLI.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,15 @@ package Perl6::Documentable::CLI {
#| Check which pod files have changed and regenerate its HTML files.
multi MAIN (
"update",
Str :$topdir = "doc", #= Directory where the pod collection is stored
Str :$conf = "config.json" #= Configuration file
Str :$topdir = "doc", #= Directory where the pod collection is stored
Str :$conf = "config.json", #= Configuration file
Bool :v(:verbose($v)) = False, #= Prints progress information

) {
DEBUG("Checking for changes...");
my $now = now;

my $cache = Pod::To::Cached.new(:path(".cache-{$topdir}"), :verbose, :source($topdir));
my $cache = Pod::To::Cached.new(:path(".cache-{$topdir}"), :verbose($v), :source($topdir));
my @files = $cache.list-files(<Valid>);

if (! @files) {
Expand Down

0 comments on commit bded16f

Please sign in to comment.