NAME

Getopt::Pad::Spec::Config - The checked config block of a spec (internal)

DESCRIPTION

This module is internal to Getopt::Pad. It is not part of the public API and can change without notice. Programs use "GetOptions" in Getopt::Pad; this page is for people working on Getopt::Pad itself.

Checks the config block of a spec: format is mandatory and must be a registered format name (the format object is created right away, so a missing YAML::XS is reported as a spec error here), paths must be an arrayref, and there must be no unknown keys. defaultPath and autoload are taken as given.

The config block is pure declaration data. Every config file is read and written by the Getopt::Pad::Config object it hands out through io.

METHODS

io

The Getopt::Pad::Config object for this config block.

formatName, defaultPath

As given in the spec. The help texts of the automatic --config option mention them.

SEE ALSO

Getopt::Pad::Config, "CONFIG FILES" in Getopt::Pad

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.