bin/kramdown-man in kramdown-man-0.1.9 vs bin/kramdown-man in kramdown-man-1.0.0

- old
+ new

@@ -1,16 +1,7 @@ #!/usr/bin/env ruby -lib_dir = File.expand_path('../lib',File.dirname(__FILE__)) +lib_dir = File.expand_path('../lib',__dir__) $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir) -require 'kramdown' -require 'kramdown/man' - -case ARGV[0] -when '-h', '--help' - warn "usage: #{File.dirname($0)} <INPUT.md >OUTPUT" - exit -end - -doc = Kramdown::Document.new(ARGF.read) -puts doc.to_man +require 'kramdown/man/cli' +exit Kramdown::Man::CLI.run(ARGV)