bin/create_driver.rb in rpipe-0.1.4 vs bin/create_driver.rb in rpipe-0.1.6
- old
+ new
@@ -29,10 +29,12 @@
puts e
end
end
rescue StandardError => e
puts "Problem creating driver for #{rawdir}"
+ puts e
+ puts e.backtrace if cli_options[:verbose]
end
end
end
def write_driver_hash (workflow_spec, driver_options = {:filename => nil})
@@ -78,9 +80,13 @@
options[:dry_run] = true
end
opts.on('-f', '--force', "Overwrite drivers if they exist.") do
options[:force] = true
+ end
+
+ opts.on('-v', '--verbose', "Print extra info.") do
+ options[:verbose] = true
end
opts.on_tail('-h', '--help', "Show this message") { puts(parser); exit }
opts.on_tail("Example: #{File.basename(__FILE__)} mrt00001")
opts.on_tail("Example: #{File.basename(__FILE__)} raw/johnson.merit220.visit1/mri/mrt*")