]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei ls-mail-sync: accept a filter
authorKyle Meyer <kyle@kyleam.com>
Tue, 4 May 2021 04:45:57 +0000 (00:45 -0400)
committerEric Wong <e@80x24.org>
Tue, 4 May 2021 04:58:12 +0000 (04:58 +0000)
lei_ls_mail_sync() is written to accept a filter, and ls-mail-sync has
related command-line options (--globoff, --invert-match), but a
positional argument isn't actually accepted.  Add it.

lib/PublicInbox/LEI.pm

index e9c1675a8f06bf437f58cb8a2ded298dc5d1771d..7be68121d956958dd66dcb85c43844e0109e9c55 100644 (file)
@@ -170,7 +170,7 @@ our %CMD = ( # sorted in order of importance/use:
 'ls-external' => [ '[FILTER]', 'list publicinbox|extindex locations',
        qw(format|f=s z|0 globoff|g invert-match|v local remote), @c_opt ],
 'ls-label' => [ '', 'list labels', qw(z|0 stats:s), @c_opt ],
-'ls-mail-sync' => [ '', 'list mail sync folders',
+'ls-mail-sync' => [ '[FILTER]', 'list mail sync folders',
                qw(z|0 globoff|g invert-match|v local remote), @c_opt ],
 'forget-external' => [ 'LOCATION...|--prune',
        'exclude further results from a publicinbox|extindex',