From 9c7b213f58fe533953953e90b5bc77087ca4d45d Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 13 Jul 2018 18:52:08 +0100 Subject: we can now parse boolean options --- lib/Getopt/Dakkar/ArgPack.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Getopt/Dakkar/ArgPack.pm') diff --git a/lib/Getopt/Dakkar/ArgPack.pm b/lib/Getopt/Dakkar/ArgPack.pm index ee710e0..4337ce4 100644 --- a/lib/Getopt/Dakkar/ArgPack.pm +++ b/lib/Getopt/Dakkar/ArgPack.pm @@ -7,5 +7,5 @@ use Getopt::Dakkar::Style qw(class); has getopt => ( is => 'ro', required => 1, weak_ref => 1 ); -has options => ( is => 'ro' ); -has arguments => ( is => 'ro' ); +has options => ( is => 'ro', isa => HashRef, default => sub { +{} } ); +has arguments => ( is => 'ro', isa => HashRef, default => sub { +{} } ); -- cgit v1.2.3