From 1f2308147646cfd0051df92ec1a97b396b78ec03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Mon, 21 Sep 2015 20:59:18 +0300 Subject: [PATCH] CLI options have priority --- bin/git-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-stats b/bin/git-stats index 503ce1e..d54231a 100755 --- a/bin/git-stats +++ b/bin/git-stats @@ -130,7 +130,7 @@ if (authorsOpt.is_provided) { if (!authorsOpt.is_provided || globalActivityOpt.is_provided) { options.firstDay = firstDayOpt.value; // This can be a string or an object - if (/^object|string$/.test(Typpy(GitStats.config.theme))) { + if (/^object|string$/.test(Typpy(GitStats.config.theme)) && !noAnsiOpt.is_provided && !lightOpt.is_provided) { options.theme = GitStats.config.theme; if (typeof GitStats.config.theme === "string") { if (!/^DARK|LIGHT$/.test(options.theme)) {