Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

v3.2

    add option skip_options to remove option to the terminal
  • Loading branch information...
commit 19ea2080de720c4bb77a929747024c3653d13bb5 1 parent a7c7cf2
Celogeek authored

Showing 2 changed files with 11 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 0  Changes
  2. +9 1 README.mkdn
2  Changes
... ... @@ -1,5 +1,7 @@
1 1 {{$NEXT}}
2 2
  3 +3.2 2012-08-12 14:41:26 Europe/Paris
  4 +
3 5 add option skip_options to remove option to the terminal
4 6
5 7 3.1 2012-08-12 02:45:07 Europe/Paris
10 README.mkdn
Source Rendered
@@ -4,7 +4,7 @@ MooX::Options - add option keywords to your object (Mo/Moo/Moose)
4 4
5 5 # VERSION
6 6
7   -version 3.1
  7 +version 3.2
8 8
9 9 # MooX::Options
10 10
@@ -36,6 +36,14 @@ The import method can take option :
36 36
37 37 use MooX::Options protect_argv => 0;
38 38
  39 + - skip\_options
  40 +
  41 + you can skip some option to remove the possibility to the terminal. in that case, the 'option' keyword will just works like an 'has'.
  42 +
  43 + use MooX::Options skip_options => [qw/multi/];
  44 +
  45 + If you have multiple tools that use the same Role to generate params, you can skip one and force his value. In my example, it could be a multithread option that you want to disabling in some case.
  46 +
39 47 # USAGE
40 48
41 49 First of all, I use [Getopt::Long::Descriptive](http://search.cpan.org/perldoc?Getopt::Long::Descriptive). Everything will be pass to the programs, more specially the format.

0 comments on commit 19ea208

Please sign in to comment.
Something went wrong with that request. Please try again.