This commit is contained in:
kenna-bmcdevitt 2020-10-27 02:24:42 -05:00
parent 474b6eb30e
commit f2bdcf4779

View file

@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require './microsoft_kb_checker.rb'
require 'optparse'
@ -7,12 +9,12 @@ ARGV << '-h' if ARGV.empty?
params = {}
OptionParser.new do |opts|
opts.banner = "Usage: microsoft_cve_audit.rb [OPTIONS]"
opts.banner = 'Usage: microsoft_cve_audit.rb [OPTIONS]'
opts.on('-c NAME', '--cve', "The cve id to check.") { |c| params[:cve_id] = c }
opts.on('-o NAME', '--os', "The operating system to check.") {|o| params[:os_name] = o }
opts.on('-c NAME', '--cve', 'The cve id to check.') { |c| params[:cve_id] = c }
opts.on('-o NAME', '--os', 'The operating system to check.') { |o| params[:os_name] = o }
opts.on_tail("-h", "--help", "Show this message") do
opts.on_tail('-h', '--help', 'Show this message') do
puts opts
exit
end