NAME
CXC::Form::Tiny::Plugin::OptArgs2::Class - Class role for OptArgs2
VERSION
version 0.10
DESCRIPTION
This role is applied to the Form::Tiny class by the CXC::Form::Tiny::Plugin::OptArgs2 plugin.
It provides methods which allow the form to access the options defined by the DSL commands option
and argument
as well as to set the form data from the output of the OptArgs2 optargs
or class_optargs
.
METHODS
optargs
\@optargs = $form->optargs;
Return an OptArgs2
compatible specification for the form fields
set_input_from_optargs
$form->set_input_from_optargs( \%optargs );
Set the input form data from the output of OptArgs2's optargs
or class_optargs
functions.
inflate_optargs
\%options = $self->inflate( \%optargs );
Inflate the "flat" options hash returned by OptArgs2 into the full hash required to initialize the form. See "inflate_optargs" in CXC::Form::Tiny::Plugin::OptArgs2::Meta for more information.
SUPPORT
Bugs
Please report any bugs or feature requests to bug-cxc-form-tiny-plugin-optargs2@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=CXC-Form-Tiny-Plugin-OptArgs2
Source
Source is available at
https://gitlab.com/djerius/cxc-form-tiny-plugin-optargs2
and may be cloned from
https://gitlab.com/djerius/cxc-form-tiny-plugin-optargs2.git
SEE ALSO
Please see those modules/websites for more information related to this module.
AUTHOR
Diab Jerius <djerius@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2023 by Smithsonian Astrophysical Observatory.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007