Skip to content

Commit

Permalink
Merge pull request #13 from mvdwg/to-tag-required
Browse files Browse the repository at this point in the history
Show error when target version is not passed to the command
  • Loading branch information
san650 authored Jul 15, 2017
2 parents da364c6 + d2f985d commit 0f8a532
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/commands/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ module.exports = Command.extend({
var path = require('path');
var toTag = rawArgs.shift();

if (!toTag) {
this.ui.writeError('Usage: ember update <ember-cli version>');
return;
}

if (!/^v/.test(toTag)) {
toTag = 'v' + toTag;
}

var packageJSON = require(path.join(this.project.root, 'package.json'));
var fromTag = cleanupVersion(packageJSON.devDependencies['ember-cli']);
var isAddon = this.project.isEmberCLIAddon();
Expand Down

0 comments on commit 0f8a532

Please sign in to comment.