Permalink
Browse files

v3.2

    add option skip_options to remove option to the terminal
  • Loading branch information...
1 parent a7c7cf2 commit 19ea2080de720c4bb77a929747024c3653d13bb5 @celogeek committed Aug 12, 2012
Showing with 11 additions and 1 deletion.
  1. +2 −0 Changes
  2. +9 −1 README.mkdn
View
@@ -1,5 +1,7 @@
{{$NEXT}}
+3.2 2012-08-12 14:41:26 Europe/Paris
+
add option skip_options to remove option to the terminal
3.1 2012-08-12 02:45:07 Europe/Paris
View
@@ -4,7 +4,7 @@ MooX::Options - add option keywords to your object (Mo/Moo/Moose)
# VERSION
-version 3.1
+version 3.2
# MooX::Options
@@ -36,6 +36,14 @@ The import method can take option :
use MooX::Options protect_argv => 0;
+ - skip\_options
+
+ you can skip some option to remove the possibility to the terminal. in that case, the 'option' keyword will just works like an 'has'.
+
+ use MooX::Options skip_options => [qw/multi/];
+
+ 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.
+
# USAGE
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.