bin/mdtranslator in adiwg-mdtranslator-0.8.1 vs bin/mdtranslator in adiwg-mdtranslator-0.8.2
- old
+ new
@@ -3,10 +3,11 @@
# 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
require 'thor'
require 'adiwg-mdtranslator'
class Mdtranslator < Thor
@@ -155,9 +156,17 @@
return
end
end
+ end
+
+ desc 'version', %q{Returns the version of mdTranslator}
+ long_desc <<-LONGDESC
+ 'mdtranslator version' returns the version number for mdTranslator
+ LONGDESC
+ def version
+ $stdout.write ADIWG::Mdtranslator::VERSION
end
Mdtranslator.start(ARGV)
end