From 022e5a8234135a34ba7014c03dfb2c2004dd9cb7 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Thu, 22 Feb 2007 15:36:39 +0000 Subject: [PATCH] Allow filename to be specified on the command-line git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@510552 13f79535-47bb-0310-9956-ffa450edef68 --- client/ruby/solr-ruby/examples/tang/tang_importer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ruby/solr-ruby/examples/tang/tang_importer.rb b/client/ruby/solr-ruby/examples/tang/tang_importer.rb index 9e6eecea72d..3b87685b3b1 100755 --- a/client/ruby/solr-ruby/examples/tang/tang_importer.rb +++ b/client/ruby/solr-ruby/examples/tang/tang_importer.rb @@ -14,11 +14,11 @@ require 'hpricot' require 'solr' solr_url = ENV["SOLR_URL"] || "http://localhost:8983/solr" -debug = ARGV[0] == "-debug" +debug = ARGV[1] == "-debug" solr = Solr::Connection.new(solr_url) -html = Hpricot(open('poems.html')) +html = Hpricot(open(ARGV[0])) max = 320 def next_blockquote(elem)