From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 00A351F934 for ; Mon, 19 Apr 2021 23:49:02 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/4] lei up: fix help output and ARGV handling Date: Mon, 19 Apr 2021 14:48:58 -0900 Message-Id: <20210419234901.4084-2-e@80x24.org> In-Reply-To: <20210419234901.4084-1-e@80x24.org> References: <20210419234901.4084-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We don't support changing search terms once "lei q --save" is used. --- lib/PublicInbox/LEI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index f641f0d9..5ee02f64 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -138,8 +138,8 @@ our %CMD = ( # sorted in order of importance/use: sort|s=s reverse|r offset=i pretty jobs|j=s globoff|g augment|a import-before! lock=s@ rsyncable alert=s@ mua=s verbose|v+), @c_opt, opt_dash('limit|n=i', '[0-9]+') ], -'up' => [ 'SEARCH_TERMS...', 'update saved search', - qw(jobs|j=s lock=s@ alert=s@ mua=s verbose|v+), @c_opt ], +'up' => [ 'OUTPUT', 'update saved search', + qw(jobs|j=s lock=s@ alert=s@ mua=s verbose|v+ all), @c_opt ], 'blob' => [ 'OID', 'show a git blob, reconstructing from mail if necessary', qw(git-dir=s@ cwd! verbose|v+ mail! oid-a|A=s path-a|a=s path-b|b=s),