From 395220b94731045436b52eb65a96a3c207ec5f76 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Tue, 3 Oct 2017 00:14:03 -0700 Subject: [PATCH] Make gzip and brotli defaults less confusing Previously these emitted default twice with -1 value. --- compy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compy.go b/compy.go index 9d10226..6a04f7e 100644 --- a/compy.go +++ b/compy.go @@ -20,10 +20,10 @@ var ( user = flag.String("user", "", "proxy user name") pass = flag.String("pass", "", "proxy password") - brotli = flag.Int("brotli", -1, "Brotli compression level (0-11, default 6)") + brotli = flag.Int("brotli", 6, "Brotli compression level (0-11)") jpeg = flag.Int("jpeg", 50, "jpeg quality (1-100, 0 to disable)") gif = flag.Bool("gif", true, "transcode gifs into static images") - gzip = flag.Int("gzip", -1, "gzip compression level (0-9, default 6)") + gzip = flag.Int("gzip", 6, "gzip compression level (0-9)") png = flag.Bool("png", true, "transcode png") minify = flag.Bool("minify", false, "minify css/html/js - WARNING: tends to break the web") )