Skip to content

Fix pod2usage failure on GetOptions error#31

Open
scfc wants to merge 1 commit into
Dual-Life:masterfrom
scfc:fix-failure-on-getoptions-error
Open

Fix pod2usage failure on GetOptions error#31
scfc wants to merge 1 commit into
Dual-Life:masterfrom
scfc:fix-failure-on-getoptions-error

Conversation

@scfc
Copy link
Copy Markdown

@scfc scfc commented Mar 29, 2026

Currently, if an error is detected while parsing the command line options (e. g. "pod2usage --does-not-exist"), pod2usage tries to call Pod::Usage's pod2usage() before that module is loaded. This change saves the result of parsing the command line options, loads the module and then calls pod2usage() if needed.

Currently, if an error is detected while parsing the command line
options (e. g. "pod2usage --does-not-exist"), pod2usage tries to call
Pod::Usage's pod2usage() before that module is loaded.  This change
saves the result of parsing the command line options, loads the module
and then calls pod2usage() if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant