NAME

ScriptX::Getopt::Specless - Parse command-line options in a simple, spec-less way

VERSION

This document describes version 0.000004 of ScriptX::Getopt::Specless (from Perl distribution ScriptX), released on 2020-10-01.

SYNOPSIS

In your script:

use ScriptX (
    'Getopt::Specless',
    'Run' => {code => sub { my ($self, $stash) = @_; my $opts = $stash->{opts}; print "You specified --foo!\n" if $opts->{foo} }},
;

On the command-line:

% ./yourscript.pl

% ./yourscript.pl --foo --bar=val --baz arg1 arg2
You specified --foo!

DESCRIPTION

This is an alternative to ScriptX::Getopt::Long if you don't want to use Getopt::Long.

SCRIPTX PLUGIN CONFIGURATION

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::Getopt::Long

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.