Permalink
Browse files

doc: Update doc for recent features.

  • Loading branch information...
1 parent 02adcd3 commit 46949e77628ef7bc71935b1ecdd040cb93971c47 @xaviershay xaviershay committed Oct 21, 2012
Showing with 5 additions and 1 deletion.
  1. +3 −0 README.md
  2. +2 −1 lib/cane/threshold_check.rb
View
@@ -87,6 +87,9 @@ Command-line arguments will override arguments specified in the `.cane` file.
warn "cane not available, quality task not provided."
end
+Loading options from a `.cane` file is supported by setting `canefile=` to the
+file name.
+
Rescuing `LoadError` is a good idea, since `rake -T` failing is totally
frustrating.
@@ -9,7 +9,8 @@ class ThresholdCheck < Struct.new(:opts)
def self.key; :threshold; end
def self.options
{
- gte: ["If FILE contains a number, verify it is >= to THRESHOLD",
+ gte: ["Check the number in FILE is >= to THRESHOLD " +
+ "(a number or another file name)",
variable: "FILE,THRESHOLD",
type: Array]
}

0 comments on commit 46949e7

Please sign in to comment.