From 5beb4a5f6585acdb036a10b2be4b45b6e7613ed6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Feb 2021 08:51:56 +0000 Subject: lei: replace --thread with --threads Nobody is expected to use long options, but for consistency with mairix(1), we'll use the pluralized option throughout (including existing PublicInbox::{Search,SearchView}). Link: https://public-inbox.org/meta/20210206090119.GA14519@dcvr/ --- lib/PublicInbox/LeiQuery.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiQuery.pm') diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 0346498f..9a6fa718 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -81,7 +81,7 @@ sub lei_q { $self->{l2m}->{jobs} = ($mj // $nproc) if $self->{l2m}; PublicInbox::LeiOverview->new($self) or return; - my %mset_opt = map { $_ => $opt->{$_} } qw(thread limit offset); + my %mset_opt = map { $_ => $opt->{$_} } qw(threads limit offset); $mset_opt{asc} = $opt->{'reverse'} ? 1 : 0; $mset_opt{limit} //= 10000; if (defined(my $sort = $opt->{'sort'})) { @@ -96,7 +96,7 @@ sub lei_q { } } # descending docid order - $mset_opt{relevance} //= -2 if $opt->{thread}; + $mset_opt{relevance} //= -2 if $opt->{threads}; $self->{mset_opt} = \%mset_opt; if ($opt->{stdin}) { -- cgit v1.2.3-24-ge0c7