NAME
Getopt::Pad::Spec::Option - one option spec
DESCRIPTION
A single validated option spec: primary name, aliases, type instance, reader name, and the required/default/valid/lazyValid/group/help/multiple settings. A default is validated and coerced at construction time. readerValue resolves the reader value for one parse: it takes the first value source that set the option (command line, then config file) or else the spec default, runs the value through checkValue, the single check/coerce pipeline, and throws a Getopt::Pad::Error worded for that source, or for a missing required option. validValues lists what the valid constraint allows: the static list, or the array reference the valid coderef returns when called; shell completion asks it for candidates. lazyValid is a predicate run after the valid check. Auto options may carry a trigger, the reaction the parser runs when the parsed command line sets the option.
Part of the Getopt::Pad distribution; see its documentation for the user-facing API.
AUTHOR
davenonymous <perl@davenonymous.com>
COPYRIGHT AND LICENSE
Copyright 2026 davenonymous
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.