Sha256: 0dec9a2b416f5b6905c8c1b4af2022701561c7eb12550ef1368f059d2caced92
Contents?: true
Size: 549 Bytes
Versions: 6
Compression:
Stored size: 549 Bytes
Contents
require 'optparse' module AwsAlertMonitor class CLI def initialize @options = parse_options end def start parser = AwsAlertMonitor::Parser.new :log_level => @options[:log_level] parser.run end private def parse_options options = {} OptionParser.new do |opts| opts.banner = "Usage: aws-alert-monitor.rb [options]" opts.on("-l", "--log-level [LOG_LEVEL]", "Log Level") do |l| options[:log_level] = l end end.parse! options end end end
Version data entries
6 entries across 6 versions & 1 rubygems