diff --git a/lib/sidekiq/cli.rb b/lib/sidekiq/cli.rb index 85593294..253b4374 100644 --- a/lib/sidekiq/cli.rb +++ b/lib/sidekiq/cli.rb @@ -129,7 +129,7 @@ module Sidekiq @options[:processor_count] = arg.to_i end - o.on '-p', '--pidfile PATH', "path to use" do |arg| + o.on '-P', '--pidfile PATH', "path to use" do |arg| @options[:pidfile] = arg end end diff --git a/test/test_cli.rb b/test/test_cli.rb index 9079c477..5498e8ae 100644 --- a/test/test_cli.rb +++ b/test/test_cli.rb @@ -41,7 +41,7 @@ class TestCli < MiniTest::Unit::TestCase @tmp_path = @tmp_file.path @tmp_file.close! File.unlink @tmp_path if File.exist? @tmp_path - @cli.parse(['sidekiq', '-p', @tmp_path, '-r', './test/fake_env.rb']) + @cli.parse(['sidekiq', '-P', @tmp_path, '-r', './test/fake_env.rb']) end after do