Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Changes
Octocat-spinner-32 README.pod
Octocat-spinner-32 dist.ini
Octocat-spinner-32 weaver.ini
README.pod

NAME

MooseX::Getopt::Explicit - MooseX::Getopt, but without implicit option generation

VERSION

version 0.02

SYNOPSIS

  use Moose;
  with 'MooseX::Getopt::Explicit';

  has foo => (
    is => 'rw',
  ); # Does *not* cause a Getopt option to be generated!

  has bar => (
    is     => 'ro'
    isa    => 'Str',
    traits => ['Getopt'],
  ); # *Does* cause a Getopt option to be generated!

DESCRIPTION

NOTE I didn't know about MooseX::Getopt::Strict when I wrote this; use that instead!

MooseX::Getopt is nice, but I don't care for how it creates a command line option for every attribute in my classes unless explicitly overridden. So this role does the opposite: it requires traits => ['Getopt'] in order for a command line option to be generated.

SEE ALSO

MooseX::Getopt

AUTHOR

Rob Hoelz <rob@hoelz.ro>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Rob Hoelz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/hoelzro/moosex-getopt-explicit/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Something went wrong with that request. Please try again.