Sha256: e5255d4b7ffc13b4f32aac971e9e881a95903610a07f4bb350c0abc61ec4fd45
Contents?: true
Size: 574 Bytes
Versions: 1
Compression:
Stored size: 574 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require "md_inc" base_dir = nil op = OptionParser.new do |op| on "-h", "--help", "Print help string" do puts op exit 0 end on "-i dir", "--include dir", "Add this directory to the Ruby path" do |dir| $: << dir end on '-d dir', '--dir dir', "Set the default dir for pulling incldue files" do |dir| base_dir = dir end end op.parse! tp = MdInc::TextProcessor.new tp.base_dir = base_dir if base_dir if ARGV.empty? tp.process_stream(STDIN) else ARGV.each do |path| tp.process_file(path) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
md_inc-0.2.2 | bin/md_inc |