#!/usr/bin/env ruby require 'bundler/setup' require 'docopt' doc = < [--endpoint=] #{__FILE__} (svg|png|txt) -R [--endpoint=] #{__FILE__} -h | --help #{__FILE__} --version Options: -h --help Show this screen. --version Show version. -R Recursively build folder. --endpoint= URL of PlantUML endpoint DOCOPT CLI = true require 'plantuml_builder' begin args = PlantumlBuilder::Cli::Args.new(Docopt::docopt(doc)) PlantumlBuilder::Cli::CliProcessor.new(args).process rescue Docopt::Exit => e puts e.message end