Class: Tidtools::Tiddler2textsCli

Inherits:
Object
  • Object
show all
Defined in:
lib/tidtools/tiddler2texts_cli.rb

Class Method Summary collapse

Class Method Details

.execute(stdout, arguments = []) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/tidtools/tiddler2texts_cli.rb', line 13

def self.execute(stdout, arguments=[])
  opt = OptionParser.new("#{File.basename($0)} tiddlywiki.html output_dir")
  opt.parse!(arguments)

  if arguments.size == 2
    Tiddler2texts.output(arguments[0], arguments[1])
  else
    stdout.puts opt.help
  end
end