diff options
author | Eric Wong <e@80x24.org> | 2021-02-25 10:11:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-26 02:35:49 +0000 |
commit | cf7c27cadd9ce7800beedc72513cf12fda77420f (patch) | |
tree | 375a378c8f79b7535b9accf2e3037726429b3d5d /lib/PublicInbox/LeiConvert.pm | |
parent | 9d1d7c2b505454fba331666a951e0f7997500b3c (diff) | |
download | public-inbox-cf7c27cadd9ce7800beedc72513cf12fda77420f.tar.gz |
Since we recommend $IN_FORMAT:$LOCATION, this is hopefully not intrusive (not that this is released software, yet). This is to be consistent with "lei convert" usage. We'll keep "-f" only for output formats, since that is used for "lei q" and "lei convert" for outputs
Diffstat (limited to 'lib/PublicInbox/LeiConvert.pm')
-rw-r--r-- | lib/PublicInbox/LeiConvert.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiConvert.pm b/lib/PublicInbox/LeiConvert.pm index 32aa2edb..45d42c9c 100644 --- a/lib/PublicInbox/LeiConvert.pm +++ b/lib/PublicInbox/LeiConvert.pm @@ -91,7 +91,7 @@ sub call { # the main "lei convert" method $opt->{augment} = 1 unless $ovv->{dst} eq '/dev/stdout'; if ($opt->{stdin}) { @inputs and return $lei->fail("--stdin and @inputs do not mix"); - $lei->check_input_format(undef, 'in-format') or return; + $lei->check_input_format(undef) or return; $self->{0} = $lei->{0}; } # e.g. Maildir:/home/user/Mail/ or imaps://example.com/INBOX @@ -123,7 +123,7 @@ sub call { # the main "lei convert" method elsif (-d _) { push @d, $input } else { return $lei->fail("Unable to handle $input") } } - if (@f) { $lei->check_input_format(\@f, 'in-format') or return } + if (@f) { $lei->check_input_format(\@f) or return } if (@d) { # TODO: check for MH vs Maildir, here require PublicInbox::MdirReader; } |