lib/oxidized/cli.rb in oxidized-0.12.2 vs lib/oxidized/cli.rb in oxidized-0.13.0
- old
+ new
@@ -41,9 +41,13 @@
def parse_opts
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
def pidfile