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-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 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 211811FA13 for ; Thu, 20 Aug 2020 20:24:59 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 06/23] init: drop -N alias for --skip-artnum Date: Thu, 20 Aug 2020 20:24:40 +0000 Message-Id: <20200820202457.21042-7-e@yhbt.net> In-Reply-To: <20200820202457.21042-1-e@yhbt.net> References: <20200820202457.21042-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It may be too easily confused for --newsgroup or --ng. This is too rarely used and never made it into a release, so it should be fine. --- Documentation/public-inbox-init.pod | 2 +- script/public-inbox-init | 2 +- t/init.t | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/public-inbox-init.pod b/Documentation/public-inbox-init.pod index 240959eb..4cc7e29f 100644 --- a/Documentation/public-inbox-init.pod +++ b/Documentation/public-inbox-init.pod @@ -54,7 +54,7 @@ Available since public-inbox 1.6.0 (PENDING). Default: none. -=item -N, --skip-artnum +=item --skip-artnum This option allows archivists to publish incomplete archives with only new mail while allowing NNTP article numbers diff --git a/script/public-inbox-init b/script/public-inbox-init index 90b32be8..b19c2321 100755 --- a/script/public-inbox-init +++ b/script/public-inbox-init @@ -39,7 +39,7 @@ my %opts = ( 'V|version=i' => \$version, 'L|index-level|indexlevel=s' => \$indexlevel, 'S|skip|skip-epoch=i' => \$skip_epoch, - 'N|skip-artnum=i' => \$skip_artnum, + 'skip-artnum=i' => \$skip_artnum, 'j|jobs=i' => \$jobs, 'ng|newsgroup=s' => \$ng, 'help|?' => \$show_help, diff --git a/t/init.t b/t/init.t index 6211bb58..4d2c5049 100644 --- a/t/init.t +++ b/t/init.t @@ -116,7 +116,7 @@ SKIP: { 'publicinboxmda.spamcheck', 'none') == 0 or BAIL_OUT "git config $?"; my $addr = 'skip3@example.com'; - $cmd = [ qw(-init -V2 -Lbasic -N12 skip3), "$tmpdir/skip3", + $cmd = [ qw(-init -V2 -Lbasic --skip-artnum=12 skip3), "$tmpdir/skip3", qw(http://example.com/skip3), $addr ]; ok(run_script($cmd), '--skip-artnum -V2'); my $env = { ORIGINAL_RECIPIENT => $addr }; @@ -131,7 +131,7 @@ SKIP: { $addr = 'skip4@example.com'; $env = { ORIGINAL_RECIPIENT => $addr }; - $cmd = [ qw(-init -V1 -N12 -Lmedium skip4), "$tmpdir/skip4", + $cmd = [ qw(-init -V1 --skip-artnum 12 -Lmedium skip4), "$tmpdir/skip4", qw(http://example.com/skip4), $addr ]; ok(run_script($cmd), '--skip-artnum -V1'); $err = '';