summaryrefslogtreecommitdiff
path: root/lib/oxidized/cli.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-18 00:27:28 +0200
committerytti <saku@ytti.fi>2016-02-18 00:27:28 +0200
commit2e7dd813f8659e9418b65983b661b48a1aaf832e (patch)
tree1ddc79cae0edc894eed94b3d2ffd49aac9272975 /lib/oxidized/cli.rb
parent8bb72c7f7a0051472ad4b09401023d2e0b39f111 (diff)
parente732e7cc29a035b34657316530f94627ba24f816 (diff)
Merge pull request #318 from danilopopeye/show-version
show version option
Diffstat (limited to 'lib/oxidized/cli.rb')
-rw-r--r--lib/oxidized/cli.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/cli.rb b/lib/oxidized/cli.rb
index d35eab3..0594dcb 100644
--- a/lib/oxidized/cli.rb
+++ b/lib/oxidized/cli.rb
@@ -43,6 +43,10 @@ module Oxidized
opts = Slop.new(:help=>true) do
on 'd', 'debug', 'turn on debugging'
on 'daemonize', 'Daemonize/fork the process'
+ on 'v', 'version', 'show version' do
+ puts Oxidized::VERSION
+ Kernel.exit
+ end
end
[opts.parse!, opts]
end