Permalink
Browse files

readme update with note on 1.8.x usage

  • Loading branch information...
1 parent 814a60b commit c88fae10064926d0f3a4d4377e352fa89def5e71 @mrb committed Oct 12, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.markdown
View
@@ -44,6 +44,18 @@ files:
If you are in doubt, check the tests for the different use cases.
+Ruby 1.8.x Note
+---------------
+
+When using Clap.run, you must use an empty set of arguments instead of
+leaving out the arguments entirely:
+
+ files = Clap.run ARGV,
+ "-a" => lambda {|| ... }
+
+Otherwise Clap will throw an error regarding "negative array size" for
+the arity of your lambdas.
+
Installation
------------

0 comments on commit c88fae1

Please sign in to comment.