The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package CLIDTest::Error::WithOptions;

use strict;
use warnings;
use base qw( CLI::Dispatch::Command );

sub options {qw( hello target|t=s )}

sub run {
  my ($self, @args) = @_;

  my $hello = $self->option('hello') ? 'hello' : 'goodbye';

  return join ' ', $hello, $self->option('target');
}

die "intentionally";

1;

__END__

=head1 NAME

CLIDTest::Error::WithOptions - option test

=head1 DESCRIPTION

test with options