# File lib/slop.rb, line 345 def to_s heads = options.reject(&:tail?) tails = (options - heads) opts = (heads + tails).select(&:help).map(&:to_s) optstr = opts.each_with_index.map { |o, i| (str = @separators[i + 1]) ? [o, str].join("\n") : o }.join("\n") if config[:banner] config[:banner] << "\n" config[:banner] << "#{@separators[0]}\n" if @separators[0] config[:banner] + optstr else optstr end end