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.0 required=3.0 tests=ALL_TRUSTED,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 276361F9FC for ; Thu, 28 Oct 2021 11:15:02 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/8] lei convert: use "--output" in failure message Date: Thu, 28 Oct 2021 11:14:55 +0000 Message-Id: <20211028111501.24014-3-e@80x24.org> In-Reply-To: <20211028111501.24014-1-e@80x24.org> References: <20211028111501.24014-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: The extra dashes should help users find the correct option more easily. --- lib/PublicInbox/LeiConvert.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiConvert.pm b/lib/PublicInbox/LeiConvert.pm index 424eab8e22e2..623599aef883 100644 --- a/lib/PublicInbox/LeiConvert.pm +++ b/lib/PublicInbox/LeiConvert.pm @@ -51,7 +51,7 @@ sub lei_convert { # the main "lei convert" method my $self = bless {}, __PACKAGE__; my $ovv = PublicInbox::LeiOverview->new($lei, 'out-format'); $lei->{l2m} or return - $lei->fail("output not specified or is not a mail destination"); + $lei->fail('--output unspecified or is not a mail destination'); my $devfd = $lei->path_to_fd($ovv->{dst}) // return; $lei->{opt}->{augment} = 1 if $devfd < 0; $self->prepare_inputs($lei, \@inputs) or return;