diff --git a/lib/utils/index.js b/lib/utils/index.js index d49f8c5e..c4803383 100644 --- a/lib/utils/index.js +++ b/lib/utils/index.js @@ -69,7 +69,7 @@ var utils = (module.exports = { args.map(function (arg) { // if an argument contains a space, we want to show it with quotes // around it to indicate that it is a single argument - if (arg.indexOf(' ') === -1) { + if (arg.length > 0 && arg.indexOf(' ') === -1) { return arg; } // this should correctly escape nested quotes