Skip to content

Commit 3aff2eb

Browse files
committed
Add documentation for new inverse option
1 parent 4782acd commit 3aff2eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/thor.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ 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.
155156
#
156157
def method_option(name, options = {})
157158
scope = if options[:for]

0 commit comments

Comments
 (0)