Skip to content

Commit 8fad413

Browse files
committed
Improve inverse documentation
1 parent 2282a09 commit 8fad413

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/thor.rb

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

0 commit comments

Comments
 (0)