Module: Markdown
- Defined in:
- lib/markdown/tools.rb,
lib/markdown/cli/gen.rb,
lib/markdown/cli/opts.rb,
lib/markdown/cli/runner.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.main ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/markdown/tools.rb', line 17 def self.main # allow env variable to set RUBYOPT-style default command line options # e.g. -o site markdownopt = ENV[ 'MARKDOWNOPT' ] args = [] args += markdownopt.split if markdownopt args += ARGV.dup Runner.new.run(args) end |