NAME

scriptx-eg-getopt-long - Parse command-line options using simple heuristics (demos debugging by dumping stash)

VERSION

This document describes version 0.000 of scriptx-eg-getopt-long (from Perl distribution ScriptX), released on 2020-09-03.

SYNOPSIS

% script-eg-getopt-specless
Please specify --name!

% script-eg-getopt-specless --name=Budi
Please specify --gender!

% script-eg-getopt-specless --name=Budi --gender=x
Invalid value in --gender, please specify m|f!

% script-eg-getopt-specless --name=Budi --gender=m
Hello, Mr. Budi!

DESCRIPTION

This script demonstrates the use of ScriptX::Getopt::Long which, admittedly, does not do much. It's okay if you want to load and use Getopt::Long directly.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/ScriptX.

SOURCE

Source repository is at https://github.com/perlancar/perl-ScriptX.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=ScriptX

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

scriptx-eg-getopt-specless

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.