Empty ARGV before starting Kemal (#53)

This commit is contained in:
Alex Ling 2020-06-03 07:55:18 +00:00
parent 3b737c0bee
commit 54123917af

View File

@ -29,6 +29,8 @@ class CLI < Clim
Config.load(opts.config).set_current Config.load(opts.config).set_current
MangaDex::Downloader.default MangaDex::Downloader.default
# empty ARGV so it won't be passed to Kemal
ARGV.clear
server = Server.new server = Server.new
server.start server.start
end end