diff options
author | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-02-17 14:45:54 -0200 |
---|---|---|
committer | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-02-17 15:55:42 -0200 |
commit | e732e7cc29a035b34657316530f94627ba24f816 (patch) | |
tree | 93dd155c81a20bea35138cb17335a10ad1d9a2f4 /lib/oxidized/cli.rb | |
parent | f4f97914195129c7c75d034ac22ca132e2a3ad17 (diff) |
create `-v` and `--version` options
Diffstat (limited to 'lib/oxidized/cli.rb')
-rw-r--r-- | lib/oxidized/cli.rb | 4 |
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 |