mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
CLI options have priority
This commit is contained in:
parent
94b9e10777
commit
1f23081476
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue