Sha256: 40f4e36011a47f6eaa0f7db63d4d7eb85a0ec4390789395a8659d3d42bb056a2
Contents?: true
Size: 879 Bytes
Versions: 1
Compression:
Stored size: 879 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'optparse' $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'ico' help =<<-EOS.gsub(/^\s*\|/, '').chomp | |ico-ruby |---------------------------------------------- | Ruby Gem wrapper for the to-ico Node Package | Gem #{Ico::VERSION} | JS #{Ico::VERSION_JS} EOS ARGV << '-h' if ARGV.empty? options = {} parser = OptionParser.new do |opts| opts.banner = help + "\n\n usage: ico [options]" opts.on('-s', '--size size', 'Size') do |format| options[:size] = size; end opts.on('-i', '--input input', 'Input') do |input| options[:input] = input; end opts.on('-o', '--output output', 'Output') do |output| options[:output] = output; end opts.on_tail("-h", "--help", "Show this message") do puts opts puts puts exit end end parser.parse! p options
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bmp-ruby-0.1.1 | bin/bmp |