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:
parent
ac30b072b0
commit
3d6825f7ef
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
HEAD
|
||||
-----------
|
||||
|
||||
- Add version CLI option
|
||||
|
||||
0.10.1
|
||||
-----------
|
||||
|
||||
|
|
|
@ -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]"
|
||||
|
|
Loading…
Add table
Reference in a new issue