bin/jflow_worker in jflow-0.2.8 vs bin/jflow_worker in jflow-0.2.9

- old
+ new

@@ -1,11 +1,12 @@ #!/usr/bin/env ruby require "jflow" -require "slop" +require "optparse" -opts = Slop.parse do |o| - o.string '-f', '--file', 'worker configuration file' -end +opts = {} +OptionParser.new do |opt| + opt.on('-f filename') { |o| opts[:file] = o } +end.parse! raise "You need to specify a file!" unless opts[:file] configuration = JSON.parse(File.read(opts[:file]))