cmd/run.rb in bahuvrihi-tap-0.10.2 vs cmd/run.rb in bahuvrihi-tap-0.10.3

- old
+ new

@@ -45,15 +45,16 @@ end.parse!(ARGV) # # handle options for each specified task # +require 'tap/support/parsers/command_line' -rounds = env.parse(ARGV) +queues = Tap::Support::Parsers::CommandLine.new(ARGV).build(env, app) ARGV.clear -if rounds.empty? +if queues.empty? puts "no task specified" exit end # @@ -97,9 +98,9 @@ # # enque tasks and run! # -rounds.each_with_index do |queue, i| +queues.each_with_index do |queue, i| app.queue.concat(queue) app.run end