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/LeiHelp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiHelp.pm') diff --git a/lib/PublicInbox/LeiHelp.pm b/lib/PublicInbox/LeiHelp.pm index e62298f7..a654e1c2 100644 --- a/lib/PublicInbox/LeiHelp.pm +++ b/lib/PublicInbox/LeiHelp.pm @@ -40,7 +40,7 @@ sub call { @vals = (' [', undef, ']'); } elsif ($x =~ s/=.+//) { # required arg: $x = "type=s" @vals = (' ', undef); - } # else: no args $x = 'thread|t' + } # else: no args $x = 'threads|t' # we support underscore options from public-inbox-* commands; # but they've never been documented and will likely go away. @@ -48,7 +48,7 @@ sub call { for (grep { !/_/ && !$NOHELP{$_} } split(/\|/, $x)) { length($_) > 1 ? push(@l, "--$_") : push(@s, "-$_"); } - if (!scalar(@vals)) { # no args 'thread|t' + if (!scalar(@vals)) { # no args 'threads|t' } elsif ($arg_vals =~ s/\A([A-Z_]+)\b//) { # "NAME" $vals[1] = $1; } else { -- cgit v1.2.3-24-ge0c7