From 677bfa5ca758beb18283eefa673b88dbd0393af3 Mon Sep 17 00:00:00 2001 From: Andrew Foster Date: Mon, 10 Apr 2017 21:53:18 +1000 Subject: [PATCH] Fix reference to cli argument --- script/ingest_austalk.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/ingest_austalk.rb b/script/ingest_austalk.rb index 4aec767..b002a80 100644 --- a/script/ingest_austalk.rb +++ b/script/ingest_austalk.rb @@ -70,7 +70,7 @@ def main(options, collection, directory) # to ingest the named collection from the given directory full of .json files # if collection is ommitted, defaults to 'austalk' if ARGV.length == 1 - main(options, 'austalk', ARGV[1]) + main(options, 'austalk', ARGV[0]) elsif ARGV.length == 2 main(options, ARGV[0], ARGV[1]) else