bin/mdtranslator in adiwg-mdtranslator-0.10.2 vs bin/mdtranslator in adiwg-mdtranslator-0.12.0
- old
+ new
@@ -4,10 +4,12 @@
# History:
# Stan Smith 2014-07-15 original script
# Stan Smith 2014-09-02 changed name to mdtranslator
# Stan Smith 2014-09-21 coded cli to 0.8.0 api
# Stan Smith 2014-10-09 added version command to the CLI
+# Stan Smith 2014-12-29 changed default reader from adiwgJson to mdJson
+# Stan Smith 2015-01-15 changed translate method to use keyword arguments
require 'thor'
require 'adiwg-mdtranslator'
class Mdtranslator < Thor
@@ -46,11 +48,15 @@
else
fileObj = file
end
# call mdtranslator
- mdReturn = ADIWG::Mdtranslator.translate(fileObj, options[:reader], options[:writer],
- options[:validate], options[:showAllTags])
+ mdReturn = ADIWG::Mdtranslator.translate(
+ file: fileObj,
+ reader: options[:reader],
+ writer: options[:writer],
+ validate: options[:validate],
+ showAllTags: options[:showAllTags])
# determine return content and type of return ...
if mdReturn[:readerStructurePass] && mdReturn[:readerValidationPass]
# no problem was found with the input file