From: Piotr Roszatycki Date: Sat, 29 Nov 2008 11:16:47 +0000 (+0000) Subject: * MooseX::Getopt::OptionTypeMap: Change Bool|* to Defined|*. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d116b5ae6fd17ab7c1f6e9815010ac91807af406;p=gitmo%2FMooseX-Getopt.git * MooseX::Getopt::OptionTypeMap: Change Bool|* to Defined|*. --- diff --git a/ChangeLog b/ChangeLog index dbcacda..9fb6a6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,7 +26,7 @@ Revision history for Perl extension MooseX-Getopt new_with_options( usage => $usage ) constructor. (dexter) * MooseX::Getopt::OptionTypeMap - - Added new types: Bool|Int, Bool|Float, Bool|Str. (dexter) + - Added new types: Defined|Int, Defined|Float, Defined|Str. (dexter) 0.15 Sat. July 26 2008 * MooseX::Getopt::OptionTypeMap diff --git a/lib/MooseX/Getopt/OptionTypeMap.pm b/lib/MooseX/Getopt/OptionTypeMap.pm index 449510c..09f29b3 100644 --- a/lib/MooseX/Getopt/OptionTypeMap.pm +++ b/lib/MooseX/Getopt/OptionTypeMap.pm @@ -15,12 +15,12 @@ my %option_type_map = ( 'Num' => '=f', 'ArrayRef' => '=s@', 'HashRef' => '=s%', - 'Bool|Str' => ':s', - 'Bool|Int' => ':i', - 'Bool|Num' => ':f', - 'Str|Bool' => ':s', - 'Int|Bool' => ':i', - 'Num|Bool' => ':f', + 'Defined|Str' => ':s', + 'Defined|Int' => ':i', + 'Defined|Num' => ':f', + 'Str|Defined' => ':s', + 'Int|Defined' => ':i', + 'Num|Defined' => ':f', );