NAME
Getopt::Yath::Option::BoolMap - Options that take multiple boolean values.
DESCRIPTION
Match several --OPTION-XXX and --no-OPTION-XXX options based on a given regex, populates a hashref where each option found is given a true or false value depedning on if it has the --no- prefix.
SYNOPSIS
option features => (
type => 'BoolMap',
clear => sub { {features => 0} },
pattern => qr/feature-(.+)/,
description => 'Match '--feature-(foo), --no-feature-(foo), etc and set {foo => $BOOL} in the 'features' option',
);
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.