NAME

OptArgs2::Opt - A class representing a command option

SYNOPSIS

use OptArgs2::Cmd;

my $opt = OptArgs2::Cmd->new(...)->add_opt(
  name     => 'opt_name',
  isa      => 'Str',
  required => 1,
  default  => 'default_value',
  alias    => 'o',
);

DESCRIPTION

The OptArgs2::Opt class is internal to OptArgs2.

AUTHOR

Mark Lawrence <mark@rekudos.net>

LICENSE

Copyright 2016-2025 Mark Lawrence <mark@rekudos.net>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.