lib/riemann/tools.rb in riemann-tools-0.2.13 vs lib/riemann/tools.rb in riemann-tools-0.2.14
- old
+ new
@@ -1,8 +1,8 @@
module Riemann
module Tools
- require 'trollop'
+ require 'optimist'
require 'riemann/client'
def self.included(base)
base.instance_eval do
def run
@@ -14,14 +14,14 @@
@opts ||= []
@opts << a
end
def options
- p = Trollop::Parser.new
+ p = Optimist::Parser.new
@opts.each do |o|
p.send *o
end
- Trollop::with_standard_exception_handling(p) do
+ Optimist::with_standard_exception_handling(p) do
p.parse ARGV
end
end
opt :host, "Riemann host", :default => '127.0.0.1'