Skip to content

Commit

Permalink
also set tab.argv when completing
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jul 24, 2014
1 parent 791865f commit 361525c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var complete = function(index, words) {
var prev = words[index-1] || '';
var _ = minimist(words.slice(0, index+1))._;
var cmd = _[0];
var argv = normalize(cmd, minimist(words));
var argv = tab.argv = normalize(cmd, minimist(words));

var callback = function(err, values, opts) {
if (err) return process.exit(1);
Expand Down

0 comments on commit 361525c

Please sign in to comment.