{"id":27197663,"url":"https://github.com/preaction/pod-usage-return","last_synced_at":"2025-07-21T06:35:16.551Z","repository":{"id":16838074,"uuid":"19597632","full_name":"preaction/Pod-Usage-Return","owner":"preaction","description":"Pod::Usage that returns the exit code instead of calling exit()","archived":false,"fork":false,"pushed_at":"2019-09-09T00:11:54.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-28T10:07:39.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/preaction.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-09T03:25:26.000Z","updated_at":"2019-09-09T00:11:56.000Z","dependencies_parsed_at":"2022-07-14T18:00:33.717Z","dependency_job_id":null,"html_url":"https://github.com/preaction/Pod-Usage-Return","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/preaction/Pod-Usage-Return","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FPod-Usage-Return","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FPod-Usage-Return/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FPod-Usage-Return/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FPod-Usage-Return/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/preaction","download_url":"https://codeload.github.com/preaction/Pod-Usage-Return/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FPod-Usage-Return/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266253810,"owners_count":23900056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-09T20:29:18.167Z","updated_at":"2025-07-21T06:35:16.531Z","avatar_url":"https://github.com/preaction.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Pod::Usage::Return - pod2usage that returns instead of exits\n\nVERSION\n    version 0.004\n\nSYNOPSIS\n        use Pod::Usage::Return qw( pod2usage );\n\n        exit pod2usage(0);\n\n        sub main {\n            return pod2usage(\"ERROR: An error occurred!\") if $ERROR;\n        }\n\n        exit pod2usage( -exitval =\u003e 1, -message =\u003e 'ERROR: An error occurred' );\n\nDESCRIPTION\n    This is a drop-in replacement for Pod::Usage \"pod2usage\" that returns\n    the exit value instead of calling exit.\n\nRATIONALE\n    Testing that your command-line script works is a good thing. It's a lot\n    easier to test a module, so writing your command-line script as a module\n    (\"modulino\") makes it easier to test.\n\n    Unfortunately, Pod::Usage automatically calls \"exit\", which again makes\n    it harder to test your script. There is a way to prevent Pod::Usage from\n    exiting, but it makes using Pod::Usage a lot less convenient.\n\n    This module provides a drop-in \"pod2usage\" replacement that returns the\n    exit code instead of exiting, so that you can easily test your script\n    while using Pod::Usage.\n\nFUNCTIONS\n  pod2usage\n    See Pod::Usage for documentation. Returns the exit code instead of\n    calling exit().\n\nAUTHOR\n    Doug Bell \u003cpreaction@cpan.org\u003e\n\nCOPYRIGHT AND LICENSE\n    This software is copyright (c) 2014 by Doug Bell.\n\n    This is free software; you can redistribute it and/or modify it under\n    the same terms as the Perl 5 programming language system itself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreaction%2Fpod-usage-return","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreaction%2Fpod-usage-return","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreaction%2Fpod-usage-return/lists"}