README.tmpl in main-2.1.0 vs README.tmpl in main-2.2.0
- old
+ new
@@ -184,9 +184,29 @@
vim -o lib/main.rb lib/main/*
API section below
HISTORY
+ 2.2.0
+ - added ability for parameter dsl error handlers to accept an argument,
+ this will be passed the current error. for example
+
+ argument(:x) do
+ arity 42
+
+ error do |e|
+ case e
+ when Parameter::Arity
+ ...
+ end
+ end
+
+ - refined the mode parsing a bit: modes can now be abbreviated to uniqness
+ and, when the mode is ambiuous, a nice error message is printed, for
+ example:
+
+ ambiguous mode: in = (inflate or install)?
+
2.1.0
- added custom error handling dsl for parameters, this includes the ability
to prepend, append, or replace the standard error handlers:
require 'main'