Class: Capwatch::CLI
- Inherits:
-
Object
- Object
- Capwatch::CLI
- Defined in:
- lib/capwatch.rb
Class Method Summary collapse
Class Method Details
.parse(args) ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/capwatch.rb', line 106 def self.parse(args) = OpenStruct.new .tick = 60 * 5 opt_parser = OptionParser.new do |opts| opts.on('-t', '--tick [Integer]', Integer, 'Tick Interval') do |t| .tick = t end end opt_parser.parse!(args) end |