Permalink
Browse files

a note about converting option types

  • Loading branch information...
1 parent 194bf3a commit 9cc775511016a818b2941a5ef6ef1ae5a2373750 @cldwalker committed Mar 21, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
View
@@ -117,6 +117,9 @@ Now for pros thor has over boson. Thor
* Change your requires and subclass from Boson::Runner instead of Thor.
* Delete the first argument from `desc`. Usage is automatically created in boson.
* Rename `method_option` to `option`
+* For options with a type option, make sure it maps to a symbol i.e. :array or :boolean.
+ If left a string, the option will be interpreted to be a string option with that
+ string as a default.
* `class_option` doesn't exist yet but you can emulate it for now by defining
your class option in a class method and then calling your class method before
every command. See [vimdb](http://github.com/cldwalker/vimdb) for an example.

0 comments on commit 9cc7755

Please sign in to comment.