diff options
author | Eric Wong <e@80x24.org> | 2019-05-29 08:45:49 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-29 08:45:49 +0000 |
commit | 7187388231277606aaac3c00287f55ac7b604844 (patch) | |
tree | 107290b50139e745782619fe8127076dbf3792d0 /script | |
parent | 5af59aa283a861292e1b79402af1c551e493e0f8 (diff) | |
parent | 5782c00d515df59933ec72ba53b6b243210d7c59 (diff) | |
download | public-inbox-7187388231277606aaac3c00287f55ac7b604844.tar.gz |
* v2-idx-progress: v2writable: show progress updates for index_sync index: support --verbose option v2writable: move index_sync options to sync state v2writable: use prototypes for internal subs v2writable: localize unindex-range.$EPOCH to $sync state v2writable: move {ranges} into $sync state v2writable: move {regen} into $sync state v2writable: move {reindex} field to $sync state v2writable: sync: move delete markers into $sync state v2writable: introduce $sync state and put mm_tmp in it
Diffstat (limited to 'script')
-rwxr-xr-x | script/public-inbox-index | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/public-inbox-index b/script/public-inbox-index index 40187b35..c0d637b1 100755 --- a/script/public-inbox-index +++ b/script/public-inbox-index @@ -13,8 +13,8 @@ my $usage = "public-inbox-index INBOX_DIR"; use PublicInbox::Admin; PublicInbox::Admin::require_or_die('-index'); -my $opt = {}; -GetOptions($opt, qw(reindex jobs|j=i prune indexlevel|L=s)) +my $opt = { quiet => -1 }; +GetOptions($opt, qw(verbose|v+ reindex jobs|j=i prune indexlevel|L=s)) or die "bad command-line args\n$usage"; die "--jobs must be positive\n" if defined $opt->{jobs} && $opt->{jobs} <= 0; @@ -35,4 +35,5 @@ foreach my $ibx (@ibxs) { } PublicInbox::Admin::require_or_die(keys %$mods); +PublicInbox::Admin::progress_prepare($opt); PublicInbox::Admin::index_inbox($_, $opt) for @ibxs; |