Skip to content

Commit 6f25cc6

Browse files
committed
Add documentation for new inverse option
1 parent c63fff3 commit 6f25cc6

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
@@ -151,6 +151,7 @@ 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.
154155
#
155156
def method_option(name, options = {})
156157
scope = if options[:for]

0 commit comments

Comments
 (0)