diff options
author | Eric Wong <e@80x24.org> | 2021-02-07 08:51:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-07 22:57:15 +0000 |
commit | 5beb4a5f6585acdb036a10b2be4b45b6e7613ed6 (patch) | |
tree | 9ebfe1b08024f5681f2b2b0d1d26ea2ecae2a1f5 /lib/PublicInbox/LeiHelp.pm | |
parent | c1ea28b62d19bb7c77a275497899382df344eb52 (diff) | |
download | public-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/LeiHelp.pm')
-rw-r--r-- | lib/PublicInbox/LeiHelp.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |