]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: fix --help for --jobs with `up' and `q'
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 01:35:51 +0000 (01:35 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Sep 2022 01:35:13 +0000 (01:35 +0000)
The help needs to match on the short option, too, and that
`lei q' option is (like most options) shared with `lei up'.

lib/PublicInbox/LEI.pm

index 8a3a3ab607fe501cab30827cda019541dd655ed5..f3e80113ed7042e7332fb307653825fbd8e3314f 100644 (file)
@@ -399,8 +399,10 @@ my %OPTDESC = (
                'include specified external(s) in search' ],
 'only|O=s@     q' => [ 'LOCATION',
                'only use specified external(s) for search' ],
-'jobs=s        q' => [ '[SEARCH_JOBS][,WRITER_JOBS]',
-               'control number of search and writer jobs' ],
+'jobs|j=s' => [ 'JOBSPEC',
+               'control number of query and writer jobs' .
+               "integers delimited by `,', either of which may be omitted"
+               ],
 'jobs|j=i      add-external' => 'set parallelism when indexing after --mirror',
 
 'in-format|F=s' => $stdin_formats,