Skip to content

Commit

Permalink
Fixed missing attach for parse function.
Browse files Browse the repository at this point in the history
  • Loading branch information
alansouzati committed Aug 2, 2016
1 parent ff19d36 commit 814898c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/option.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down
1 change: 1 addition & 0 deletions dist/vorpal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions lib/vorpal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 814898c

Please sign in to comment.