diff --git a/extract_amendments.rb b/extract_amendments.rb index 2c93865f4ac57d85dc199f0989c561c8954343a8..a565c3b12a25db4665216b1b672108064b9b69e7 100755 --- a/extract_amendments.rb +++ b/extract_amendments.rb @@ -8,9 +8,9 @@ require 'nokogiri' xml_dump_path = nil -cli '--xml-dump' => lambda { |path| xml_dump_path = path } +extra_args = cli '--xml-dump' => lambda { |path| xml_dump_path = path } -opendocument_path = ARGV.first +opendocument_path = extra_args.first raise "usage: #$0 " unless opendocument_path xml = nil