lib/eco/cli/config/options_set.rb in eco-helpers-2.0.26 vs lib/eco/cli/config/options_set.rb in eco-helpers-2.0.27
- old
+ new
@@ -23,10 +23,10 @@
spaces.each do |namespace|
is_general = (namespace == :general)
str_indent = is_general ? "" : " " * indent
lines << help_line(namespace, "", max_len) unless is_general
options_set(namespace).select do |arg, option|
- refine.is_a?(String) && option.name.include?(refine)
+ !refine.is_a?(String) || option.name.include?(refine)
end.each do |arg, option|
lines << help_line(" " * indent + "#{option.name}", option.description, max_len)
end
end
lines