From d98617b873e25b51f539f4512766671fe13bf66b Mon Sep 17 00:00:00 2001 From: jc00ke Date: Wed, 15 Feb 2012 11:24:01 -0800 Subject: [PATCH] Use -P for pidfile flag --- lib/sidekiq/cli.rb | 2 +- test/test_cli.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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