1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Add version option

This commit is contained in:
Mike Perham 2012-03-30 08:57:30 -07:00
parent ac30b072b0
commit 3d6825f7ef
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
HEAD
-----------
- Add version CLI option
0.10.1
-----------

View file

@ -145,6 +145,11 @@ module Sidekiq
o.on '-C', '--config PATH', "path to YAML config file" do |arg|
opts[:config_file] = arg
end
o.on '-V', '--version', "Print version and exit" do |arg|
puts "Sidekiq #{Sidekiq::VERSION}"
die(0)
end
end
@parser.banner = "sidekiq [options]"