Sha256: 5dc0c8f071afc3145ceb2b592ebc90037db7389cb97ac222f24851a4cdb4ab46
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 Bytes
Contents
#!/usr/bin/env ruby require 'pry' require 'optparse' require File.expand_path('../../lib/profound', __FILE__) options = { :theme => :dark } source, caption, destination = OptionParser.new do |opts| opts.banner = 'Usage: profound [options] source "Caption or label" destination' opts.separator "" opts.separator "Specific options:" opts.on("--theme=THEME", "light,dark") do |theme| options[:theme] = theme.to_sym end opts.on("--filter=FILTER", "toycamera") do |filter| options[:filter] = filter.to_sym end end.parse! unless ARGV.length == 3 puts Choice.help exit(1) end Profound::Image.new(source, caption, options, destination).convert
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
profound-0.0.2 | bin/profound |