bin/org-parse in org-parse-0.1.1 vs bin/org-parse in org-parse-0.1.2
- old
+ new
@@ -32,11 +32,12 @@
options_parser.parse!
if (ARGV.length == 0) then
puts options_parser
else
data = IO.read(ARGV[0])
-
- parser = OrgParse::StructParser.new(data, File.basename(ARGV[0], '.*'))
+ opts = {}
+ opts[:default_title] = File.basename(ARGV[0], '.*')
+ parser = OrgParse::StructParser.new(data, opts)
root = parser.parse
if options[:format] == :html
visitor = OrgParse::HtmlVisitor.new(root, options[:template])
elsif
visitor = OrgParse::TextileVisitor.new(root)