feat: add version option
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e16e6d3a69
commit
7329379728
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ module BulkBarrage
|
||||||
parser.on("report", "Process and report spam email (default: from STDIN)") do
|
parser.on("report", "Process and report spam email (default: from STDIN)") do
|
||||||
process_email_spam
|
process_email_spam
|
||||||
end
|
end
|
||||||
|
parser.on("--version", "Show version") do |flag|
|
||||||
|
STDOUT.puts "#{PROGRAM_NAME} #{VERSION}"
|
||||||
|
exit(0)
|
||||||
|
end
|
||||||
parser.on("--help", "-h", "show this help") do
|
parser.on("--help", "-h", "show this help") do
|
||||||
puts parser
|
puts parser
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue