Skip to content

Commit

Permalink
Improve inverse documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Jun 1, 2021
1 parent 15dd942 commit e2bcab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/thor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def method_options(options = nil)
# :type - The type of the argument, can be :string, :hash, :array, :numeric or :boolean.
# :banner - String to show on usage notes.
# :hide - If you want to hide this option from the help.
# :inverse - Set to false if you want to suppress --no-<option> to be generated for booleans.
# :inverse - false if yo don't want an inverse option of your boolean type, String or Symbol
# if you want to override the inverse option name.
#
def method_option(name, options = {})
scope = if options[:for]
Expand Down

0 comments on commit e2bcab4

Please sign in to comment.