diff options
author | dakkar <dakkar@thenautilus.net> | 2018-07-13 18:52:08 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-07-13 18:52:08 +0100 |
commit | 9c7b213f58fe533953953e90b5bc77087ca4d45d (patch) | |
tree | c78cd04844a4ba1e92f1bf1dc29c14b3813e4bc7 /lib/Getopt/Dakkar/ArgPack.pm | |
parent | I'm losing the plot, here (diff) | |
download | Getopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.tar.gz Getopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.tar.bz2 Getopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.zip |
Diffstat (limited to 'lib/Getopt/Dakkar/ArgPack.pm')
-rw-r--r-- | lib/Getopt/Dakkar/ArgPack.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 { +{} } ); |