Class: IconCreater::Parser
- Inherits:
-
Object
- Object
- IconCreater::Parser
- Defined in:
- lib/iconCreater/parser.rb
Instance Method Summary collapse
Instance Method Details
#parse ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/iconCreater/parser.rb', line 7 def parse inp = Input.new; OptionParser.new do |opts| opts. = "Usage: " opts.on("-i", "--input INOUT", "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", "Run verbosely") do p IconCreater::VERSION exit 0 end end.parse! inp end |