diff --git a/lib/command.js b/lib/command.js index d13b9cb5..ca4fd5d8 100644 --- a/lib/command.js +++ b/lib/command.js @@ -86,6 +86,9 @@ Command.prototype.register = function(client) { }; Command.prototype._prepare = function(options) { + if (!process.stdin.isTTY) { + options.nonInteractive = true; + } if (utils.getInheritedOption(options, 'debug')) { logger.transports.console.level = 'debug'; }