From 76c008d3192e137046ffb2f0610ddebe67f56cca Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 5 Feb 2018 19:37:09 -0600 Subject: [PATCH] Make sure extra options don't override Kemal defaults --- src/invidious.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 9bb00180..ecc18ea6 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -22,7 +22,7 @@ require "./helpers" threads = 10 -OptionParser.parse! do |parser| +Kemal.config.extra_options do |parser| parser.banner = "Usage: invidious [arguments]" parser.on("-t THREADS", "--threads=THREADS", "Number of threads for crawling (default: 10)") do |number| begin @@ -110,8 +110,8 @@ threads.times do end macro templated(filename) - render "src/views/#{{{filename}}}.ecr", "src/views/layout.ecr" -end + render "src/views/#{{{filename}}}.ecr", "src/views/layout.ecr" + end get "/" do |env| top = rank_videos(PG_DB, 120)