[fix] Quiet cli arg not working (#96)

This commit is contained in:
Bas Heerschop
2019-08-15 09:27:02 +02:00
committed by Adam Reis
parent d2e01374c6
commit 21304a6579

View File

@@ -13,7 +13,7 @@ module.exports = function combineConfig(config, argv) {
//Extract options from config
let {
from, to, files, ignore, encoding, verbose,
allowEmptyPaths, disableGlobs, isRegex, dry,
allowEmptyPaths, disableGlobs, isRegex, dry, quiet,
} = config;
//Get from/to parameters from CLI args if not defined in options
@@ -48,10 +48,13 @@ module.exports = function combineConfig(config, argv) {
if (typeof dry === 'undefined') {
dry = !!argv.dry;
}
if (typeof quiet === 'undefined') {
quiet = !!argv.quiet;
}
//Return through parser to validate
return parseConfig({
from, to, files, ignore, encoding, verbose,
allowEmptyPaths, disableGlobs, isRegex, dry,
allowEmptyPaths, disableGlobs, isRegex, dry, quiet,
});
};