Skip to content

Commit

Permalink
pod2text --help should exit with status 0
Browse files Browse the repository at this point in the history
pod2text --help now exits with status 0, not 1, matching normal UNIX
command behavior and the behavior of pod2man.

Fixes #19
  • Loading branch information
rra committed Dec 26, 2022
1 parent d0061c0 commit 8909fba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Revision history for podlators

5.02 - Not Released

- pod2text --help now exits with status 0, not 1, matching normal UNIX
command behavior and the behavior of pod2man. (GitHub #19)

5.01 - 2022-12-25

- Guesswork (formatting rules based on heuristics intended for Perl
Expand Down
2 changes: 1 addition & 1 deletion scripts/pod2text.PL
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ GetOptions (\%options, 'alt|a', 'code', 'color|c', 'encoding|e=s', 'errors=s',
'margin|left-margin|m=i', 'nourls', 'overstrike|o', 'quotes|q=s',
'sentence|s', 'stderr', 'termcap|t', 'utf8|u', 'width|w=i')
or exit 1;
pod2usage (1) if $options{help};
pod2usage (0) if $options{help};
# Figure out what formatter we're going to use. -c overrides -t.
my $formatter = 'Pod::Text';
Expand Down

0 comments on commit 8909fba

Please sign in to comment.