diff --git a/dist/option.js b/dist/option.js index 4d130eff..d801c6b5 100755 --- a/dist/option.js +++ b/dist/option.js @@ -22,7 +22,7 @@ var Option = function () { this.flags = flags; this.required = ~flags.indexOf('<'); this.optional = ~flags.indexOf('['); - this.bool = ! ~flags.indexOf('-no-'); + this.bool = !~flags.indexOf('-no-'); this.autocomplete = autocomplete; flags = flags.split(/[ ,|]+/); if (flags.length > 1 && !/^[[<]/.test(flags[1])) { diff --git a/dist/vorpal.js b/dist/vorpal.js index 4a703065..f62543bb 100755 --- a/dist/vorpal.js +++ b/dist/vorpal.js @@ -163,6 +163,7 @@ Vorpal.prototype.parse = function (argv, options) { args[i] = '"' + args[i] + '"'; } } + ui.attach(result); this.exec(args.join(' '), function (err) { if (err !== undefined && err !== null) { throw new Error(err); diff --git a/lib/vorpal.js b/lib/vorpal.js index cf883c3e..d23a2a56 100755 --- a/lib/vorpal.js +++ b/lib/vorpal.js @@ -163,6 +163,7 @@ Vorpal.prototype.parse = function (argv, options) { args[i] = `"${args[i]}"`; } } + ui.attach(result); this.exec(args.join(' '), function (err) { if (err !== undefined && err !== null) { throw new Error(err);