bin/rack-blogengine
#!/usr/bin/env ruby
require 'rack/blogengine'
if ARGV[0]
command = ARGV[0].to_sym
else
command = ''.to_sym
end
target = ARGV[1]
target = '' unless ARGV[1]
cli = Rack::Blogengine::CommandLineInterface
if target != ''
cli.public_send(command, target)
else
cli.public_send(command)
end