]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei index: support command-line options
authorEric Wong <e@80x24.org>
Fri, 21 May 2021 10:28:29 +0000 (10:28 +0000)
committerEric Wong <e@80x24.org>
Sun, 23 May 2021 01:33:04 +0000 (01:33 +0000)
This mostly takes after "lei import", and at least --quiet needs
to be supported.

lib/PublicInbox/LEI.pm

index d77684265972e1bb0696fdb2fb341309ba06ef8a..15680fe311cc2fd9119c3b1d31ebda63016d89ce 100644 (file)
@@ -233,6 +233,11 @@ our %CMD = ( # sorted in order of importance/use:
 'forget-watch' => [ '{WATCH_NUMBER|--prune}', 'stop and forget a watch',
        qw(prune), @c_opt ],
 
+'index' => [ 'LOCATION...', 'one-time index from URL or filesystem',
+       qw(in-format|F=s kw! offset=i recursive|r exclude=s include|I=s
+       verbose|v+ incremental!),
+        PublicInbox::LeiQuery::curl_opt(), # mainly for --proxy=
+        @c_opt ],
 'import' => [ 'LOCATION...|--stdin',
        'one-time import/update from URL or filesystem',
        qw(stdin| offset=i recursive|r exclude=s include|I=s