about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiQuery.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-07 08:51:56 +0000
committerEric Wong <e@80x24.org>2021-02-07 22:57:15 +0000
commit5beb4a5f6585acdb036a10b2be4b45b6e7613ed6 (patch)
tree9ebfe1b08024f5681f2b2b0d1d26ea2ecae2a1f5 /lib/PublicInbox/LeiQuery.pm
parentc1ea28b62d19bb7c77a275497899382df344eb52 (diff)
downloadpublic-inbox-5beb4a5f6585acdb036a10b2be4b45b6e7613ed6.tar.gz
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/
Diffstat (limited to 'lib/PublicInbox/LeiQuery.pm')
-rw-r--r--lib/PublicInbox/LeiQuery.pm4
1 files changed, 2 insertions, 2 deletions
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}) {