From c1ea28b62d19bb7c77a275497899382df344eb52 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Feb 2021 08:51:55 +0000 Subject: lei: remove --mua-cmd alias for --mua While "mua-cmd" may be more accurate, nobody is expected to type 4 extra characters. It's a needless ambiguity with no precedence or prior art to follow. Link: https://public-inbox.org/meta/20210206090119.GA14519@dcvr/ --- lib/PublicInbox/LEI.pm | 6 +++--- lib/PublicInbox/LeiHelp.pm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 21862488..818f2cfb 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -112,7 +112,7 @@ our %CMD = ( # sorted in order of importance/use: save-as=s output|mfolder|o=s format|f=s dedupe|d=s thread|t augment|a sort|s=s reverse|r offset=i remote! local! external! pretty include|I=s@ exclude=s@ only=s@ jobs|j=s globoff|g stdin| - mua-cmd|mua=s no-torsocks torsocks=s verbose|v+ quiet|q), + mua=s no-torsocks torsocks=s verbose|v+ quiet|q), PublicInbox::LeiQuery::curl_opt(), opt_dash('limit|n=i', '[0-9]+') ], 'show' => [ 'MID|OID', 'show a given object (Message-ID or object ID)', @@ -232,7 +232,7 @@ my %OPTDESC = ( 'output|mfolder|o=s' => [ 'MFOLDER', "destination (e.g.\xa0`/path/to/Maildir', ". "or\xa0`-'\x{a0}for\x{a0}stdout)" ], -'mua-cmd|mua=s' => [ 'CMD', +'mua=s' => [ 'CMD', "MUA to run on --output Maildir or mbox (e.g.\xa0`mutt\xa0-f\xa0%f')" ], 'show format|f=s' => [ 'OUT|plain|raw|html|mboxrd|mboxcl2|mboxcl', @@ -723,7 +723,7 @@ sub exec_buf ($$) { sub start_mua { my ($self) = @_; - my $mua = $self->{opt}->{'mua-cmd'} // return; + my $mua = $self->{opt}->{mua} // return; my $mfolder = $self->{ovv}->{dst}; my (@cmd, $replaced); if ($mua =~ /\A(?:mutt|mailx|mail|neomutt)\z/) { diff --git a/lib/PublicInbox/LeiHelp.pm b/lib/PublicInbox/LeiHelp.pm index 43414ab4..e62298f7 100644 --- a/lib/PublicInbox/LeiHelp.pm +++ b/lib/PublicInbox/LeiHelp.pm @@ -7,7 +7,7 @@ use strict; use v5.10.1; use Text::Wrap qw(wrap); -my %NOHELP = map { $_ => 1 } qw(mua-cmd mfolder); +my %NOHELP = map { $_ => 1 } qw(mfolder); sub call { my ($self, $errmsg, $CMD, $OPTDESC) = @_; -- cgit v1.2.3-24-ge0c7