]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei forget-search: add help for --prune
authorEric Wong <e@80x24.org>
Fri, 12 Nov 2021 11:08:57 +0000 (11:08 +0000)
committerEric Wong <e@80x24.org>
Mon, 15 Nov 2021 15:25:02 +0000 (15:25 +0000)
This enables tab-completion, since I'm using --prune quite a bit
and my fingers are about to fall off :<

lib/PublicInbox/LEI.pm

index 887025de5dedb608576b2263b4f20c0596fce8e5..192f267ca1dd4611ce41afb0b913878151982c06 100644 (file)
@@ -411,6 +411,9 @@ my %OPTDESC = (
 'url   ls-mail-source' => 'show full URL of newsgroup or IMAP folder',
 'format|f=s    ls-external' => $ls_format,
 
+'prune:s       forget-search' =>
+       ['TYPE|local|remote', 'prune all, remote or local folders' ],
+
 'limit|n=i@' => ['NUM', 'limit on number of matches (default: 10000)' ],
 'offset=i' => ['OFF', 'search result offset (default: 0)'],