Skip to content

Commit

Permalink
Merge pull request #86 from callemo/master
Browse files Browse the repository at this point in the history
positional params name
  • Loading branch information
tjanczuk authored Oct 7, 2016
2 parents b08dba9 + c28eadf commit 7586ff3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/mv.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,15 @@ module.exports = Cli.createCommand('mv', {
}
},
params: {
'source-webtask': {
'source': {
description: 'Source webtask name',
type: 'string',
required: false,
dest: 'source'
required: false
},
'target-webtask': {
'target': {
description: 'Target webtask name',
type: 'string',
required: false,
dest: 'target'
required: false
},
},
handler: handleWebtaskMove,
Expand All @@ -68,6 +66,7 @@ function handleWebtaskMove(args) {
'targetProfile'
]).omitBy(_.isNull).value();


if (!args.source && !args.target && _.isEmpty(options)) {
throw Cli.error.invalid('wt mv: error: too few arguments; specify a target.');
}
Expand Down

0 comments on commit 7586ff3

Please sign in to comment.