lib/relaton/cli/data_fetcher.rb in relaton-cli-1.9.1 vs lib/relaton/cli/data_fetcher.rb in relaton-cli-1.9.2

- old
+ new

@@ -1,10 +1,13 @@ module Relaton module Cli module DataFetcher def fetch(source, options) processor = Relaton::Registry.instance.find_processor_by_dataset source - processor.fetch_data source, options + opts = {} + opts[:output] = options[:output] if options[:output] + opts[:format] = options[:format] if options[:format] + processor.fetch_data source, opts end extend DataFetcher end end