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
This commit is contained in:
Erik Hatcher 2007-02-22 15:36:39 +00:00
parent 72ee2ce324
commit 022e5a8234
1 changed files with 2 additions and 2 deletions

View File

@ -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)