diff --git a/lib/thor/parser/option.rb b/lib/thor/parser/option.rb index c91e708b..23092462 100644 --- a/lib/thor/parser/option.rb +++ b/lib/thor/parser/option.rb @@ -111,7 +111,7 @@ def sample_banner end def inverse_sample - return unless boolean? && name !~ /^(force|no-.*)$/ + return if !boolean? || name =~ /^(force|no-.*)$/ case @inverse when Symbol, String