mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
18 lines
343 B
Crystal
18 lines
343 B
Crystal
require "option_parser"
|
|
require "./ameba"
|
|
|
|
OptionParser.parse(ARGV) do |parser|
|
|
parser.banner = "Usage: ameba [options]"
|
|
|
|
parser.on("-v", "--version", "Print version") do
|
|
puts Ameba::VERSION
|
|
exit 0
|
|
end
|
|
|
|
parser.on("-h", "--help", "Show this help") do
|
|
puts parser
|
|
exit 0
|
|
end
|
|
end
|
|
|
|
exit(1) unless Ameba.run.all? &.valid?
|