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.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE 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 CD6851F54E for ; Sat, 10 Sep 2022 01:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1662773751; bh=rHI8kd393fKIwodjtYy4sTyjcsMfDR0kWk0v3+2QXD0=; h=From:To:Subject:Date:From; b=YkPEieMtD5OcQTtad0BWsDKX3NOAGs6rj+zJ/J/JaCCOF3ZRp7rfT10M74T4RNZZS PhPUw6nRCuxUl29KYyynZaXnFm8s1xILBpSc57h8BQpo/GFXRPwmyVJRkr+AZjPP3E Gfic3N10F7AXo2/zSet+TzTFNWPyB2yMBj5X6NZk= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] lei: fix --help for --jobs with `up' and `q' Date: Sat, 10 Sep 2022 01:35:51 +0000 Message-Id: <20220910013551.2937650-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 8a3a3ab6..f3e80113 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -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,