From d567b6003d794f2c31755469ad1de9e87d3267ef Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Thu, 9 May 2024 13:36:13 +0200 Subject: [PATCH] Fix `--help` and `--version` reporting unicorn values --- exe/pitchfork | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exe/pitchfork b/exe/pitchfork index 6eb6e2a8..ecb590d1 100755 --- a/exe/pitchfork +++ b/exe/pitchfork @@ -64,7 +64,7 @@ op = OptionParser.new("", 24, ' ') do |opts| warn "-s/--server only exists for compatibility with rackup" end - # Unicorn-specific stuff + # Pitchfork-specific stuff opts.on("-l", "--listen {HOST:PORT|PATH}", "listen on HOST:PORT or PATH", "this may be specified multiple times", @@ -72,11 +72,11 @@ op = OptionParser.new("", 24, ' ') do |opts| options[:listeners] << address end - opts.on("-c", "--config-file FILE", "Unicorn-specific config file") do |f| + opts.on("-c", "--config-file FILE", "Pitchfork-specific config file") do |f| options[:config_file] = f end - # I'm avoiding Unicorn-specific config options on the command-line. + # I'm avoiding Pitchfork-specific config options on the command-line. # IMNSHO, config options on the command-line are redundant given # config files and make things unnecessarily complicated with multiple # places to look for a config option. @@ -89,7 +89,7 @@ op = OptionParser.new("", 24, ' ') do |opts| end opts.on_tail("-v", "--version", "Show version") do - puts "#{cmd} v#{Pitchfork::Const::UNICORN_VERSION}" + puts "#{cmd} v#{Pitchfork::VERSION} (based on Unicorn v#{Pitchfork::Const::UNICORN_VERSION})" exit end