Commit 3c2b4bec authored by Michael Witrant's avatar Michael Witrant

accept args at any position

parent d925252a
......@@ -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 <OpenDocument file>" unless opendocument_path
xml = nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment