Skip to content

Commit e2bcab4

Browse files
committed
Improve inverse documentation
1 parent 15dd942 commit e2bcab4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/thor.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def method_options(options = nil)
151151
# :type - The type of the argument, can be :string, :hash, :array, :numeric or :boolean.
152152
# :banner - String to show on usage notes.
153153
# :hide - If you want to hide this option from the help.
154-
# :inverse - Set to false if you want to suppress --no-<option> to be generated for booleans.
154+
# :inverse - false if yo don't want an inverse option of your boolean type, String or Symbol
155+
# if you want to override the inverse option name.
155156
#
156157
def method_option(name, options = {})
157158
scope = if options[:for]

0 commit comments

Comments
 (0)