lib/thor/parser/option.rb in thor-1.3.0 vs lib/thor/parser/option.rb in thor-1.3.1

- old
+ new

@@ -87,11 +87,11 @@ switch_name end sample = "[#{sample}]".dup unless required? - if boolean? - sample << ", [#{dasherize('no-' + human_name)}]" unless (name == "force") || name.match(/\Ano[\-_]/) + if boolean? && name != "force" && !name.match(/\A(no|skip)[\-_]/) + sample << ", [#{dasherize('no-' + human_name)}], [#{dasherize('skip-' + human_name)}]" end aliases_for_usage.ljust(padding) + sample end