Sha256: 9fa5ea04419cfd6d1a9e93f3962c193e960aa60856078db6cc325d2d524694d3
Contents?: true
Size: 728 Bytes
Versions: 5
Compression:
Stored size: 728 Bytes
Contents
module IconCreater class Parser require 'optparse' require 'iconCreater/input' def parse inp = Input.new; OptionParser.new do |opts| opts.banner = "Usage: iconCreater [intrerval] [arguments...]" opts.on("-i", "--icon ICON", "Set The Path of Icon") do |i| inp.iconPath = i; end opts.on("-o", "--output OUTPUT", "Set The Path of Output") do |o| inp.outputPath = o; end opts.on("-v", "--version", "Print the version") do p IconCreater::VERSION exit 0 end opts.on("-h", "--help", "Print the help") do puts opts exit 0 end end.parse! inp end end end
Version data entries
5 entries across 5 versions & 1 rubygems