mdtranslator.rb in adiwg-mdtranslator-0.8.1 vs mdtranslator.rb 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 # uncomment next 2 lines during development to run from code (not gem) .... lib = File.expand_path('lib') $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) @@ -169,9 +170,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