diff options
-rwxr-xr-x[-rw-r--r--] | lib/slop/options.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/slop/options.rb b/lib/slop/options.rb index 875fcfe..17e9501 100644..100755 --- a/lib/slop/options.rb +++ b/lib/slop/options.rb @@ -105,14 +105,14 @@ module Slop options.select.each_with_index.sort_by{ |o,i| [o.tail, i] }.each do |opt, i| # use the index to fetch an associated separator if sep = separators[i] - str << "#{sep}\n" + str += "#{sep}\n" end - str << "#{prefix}#{opt.to_s(offset: len)}\n" if opt.help? + str += "#{prefix}#{opt.to_s(offset: len)}\n" if opt.help? end if sep = separators[options.size] - str << "#{sep}\n" + str += "#{sep}\n" end str |