rubocop
This commit is contained in:
parent
474b6eb30e
commit
f2bdcf4779
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue