From: Eric Wong Date: Thu, 28 Oct 2021 11:14:55 +0000 (+0000) Subject: lei convert: use "--output" in failure message X-Git-Tag: v1.7.0~37 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=fa2df786060c55578c15295f01d47827f9246b34 lei convert: use "--output" in failure message The extra dashes should help users find the correct option more easily. --- diff --git a/lib/PublicInbox/LeiConvert.pm b/lib/PublicInbox/LeiConvert.pm index 424eab8e..623599ae 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;