Skip to content

Commit

Permalink
Fix completions to use old Grunt style for now
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Mar 6, 2018
1 parent 0c5f397 commit 8ae6299
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/grunt
Expand Up @@ -28,7 +28,9 @@ Object.keys(gruntOptions).forEach(function(key) {
// Parse them and return an options object.
var options = nopt(known, aliases, process.argv, 2);

if (options.version) {
if ('completion' in options) {
completion.print(options.completion);
} else if (options.version) {
console.log('grunt-cli v' + pkg.version);
}

Expand All @@ -45,7 +47,6 @@ v8flags(function (err, v8flags) {
cwd: options.cwd,
configPath: options.gruntfile,
require: options.require,
completion: completion,
verbose: options.verbose
}, function (env) {
var tasks = options.argv.remain;
Expand Down

0 comments on commit 8ae6299

Please sign in to comment.