feat: add version option
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Glenn Y. Rolland 2023-12-25 21:10:59 +01:00
parent e16e6d3a69
commit 7329379728

View file

@ -23,6 +23,10 @@ module BulkBarrage
parser.on("report", "Process and report spam email (default: from STDIN)") do
process_email_spam
end
parser.on("--version", "Show version") do |flag|
STDOUT.puts "#{PROGRAM_NAME} #{VERSION}"
exit(0)
end
parser.on("--help", "-h", "show this help") do
puts parser
end