summaryrefslogtreecommitdiff
path: root/lib/Getopt/Dakkar/X.pm
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2018-07-13 18:52:08 +0100
committerdakkar <dakkar@thenautilus.net>2018-07-13 18:52:08 +0100
commit9c7b213f58fe533953953e90b5bc77087ca4d45d (patch)
treec78cd04844a4ba1e92f1bf1dc29c14b3813e4bc7 /lib/Getopt/Dakkar/X.pm
parentI'm losing the plot, here (diff)
downloadGetopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.tar.gz
Getopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.tar.bz2
Getopt-Dakkar-9c7b213f58fe533953953e90b5bc77087ca4d45d.zip
we can now parse boolean optionsHEADmaster
Diffstat (limited to 'lib/Getopt/Dakkar/X.pm')
-rw-r--r--lib/Getopt/Dakkar/X.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Getopt/Dakkar/X.pm b/lib/Getopt/Dakkar/X.pm
index e595b71..f705ed5 100644
--- a/lib/Getopt/Dakkar/X.pm
+++ b/lib/Getopt/Dakkar/X.pm
@@ -2,3 +2,15 @@ package Getopt::Dakkar::X;
use Getopt::Dakkar::Style;
# VERSION
# ABSTRACT: exceptions
+
+package Getopt::Dakkar::X::ExtraArgs {
+ use Getopt::Dakkar::Style qw(class);
+ with 'Throwable';
+ has args => ( is => 'ro', isa => ArrayRef, required => 1 );
+};
+
+package Getopt::Dakkar::X::BadOption {
+ use Getopt::Dakkar::Style qw(class);
+ with 'Throwable';
+ has input => ( is => 'ro', isa => Str, required => 1 );
+};