]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei convert: use "--output" in failure message
authorEric Wong <e@80x24.org>
Thu, 28 Oct 2021 11:14:55 +0000 (11:14 +0000)
committerEric Wong <e@80x24.org>
Thu, 28 Oct 2021 19:17:08 +0000 (19:17 +0000)
The extra dashes should help users find the correct option
more easily.

lib/PublicInbox/LeiConvert.pm

index 424eab8e22e2d97a4738c88efd60a6c31b218980..623599aef883b7cb15b8f63264d23bc157c5da57 100644 (file)
@@ -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;