We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262cf6f commit 30571f9Copy full SHA for 30571f9
lib/optparse.rb
@@ -1058,7 +1058,7 @@ def compsys(to, name = File.basename($0)) # :nodoc:
1058
def help_exit
1059
if $stdout.tty? && (pager = ENV.values_at(*%w[RUBY_PAGER PAGER]).find {|e| e && !e.empty?})
1060
less = ENV["LESS"]
1061
- args = [{"LESS" => "#{!less || less.empty? ? '-' : less}Fe"}, pager, "w"]
+ args = [{"LESS" => "#{less} -Fe"}, pager, "w"]
1062
print = proc do |f|
1063
f.puts help
1064
rescue Errno::EPIPE
0 commit comments