Log only when in verbose mode

This commit is contained in:
Daniel Bulant 2020-03-02 19:32:52 +01:00
parent 40aeb7d6a8
commit 14e969b0cd

View file

@ -6,7 +6,8 @@ const chalk = require("chalk");
console = (function(oldCons){
return {
log: function(...text){
oldCons.log(...text);
if(argv.verbose)
oldCons.log(...text);
},
info: function(...text){
oldCons.info("[INFO]", ...text);