NAME
Getopt::Yath::Option::AutoMap - Options that accept multiple values, but also provide a default if no values are provided.
DESCRIPTION
This is a combination of 'Auto' and 'Map' types. The no-arg form --opt will add the default key+value pairs to the hash. The --opt=KEY=VAL form will add additional values.
SYNOPSIS
option env_var => (
field => 'env_vars',
short => 'E',
type => 'Map',
long_examples => [' VAR=VAL'],
short_examples => ['VAR=VAL', ' VAR=VAL'],
description => 'Set environment variables',
autofill => sub { +{ HOME => $ENV{HOME}, USER => $ENV{USER} } },
);
SOURCE
The source code repository for Getopt-Yath can be found at http://github.com/Test-More/Getopt-Yath/.
MAINTAINERS
AUTHORS
COPYRIGHT
Copyright Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.