diff --git a/lib/do_create_instance.js b/lib/do_create_instance.js index c06b6f3..8af49ba 100644 --- a/lib/do_create_instance.js +++ b/lib/do_create_instance.js @@ -18,9 +18,8 @@ function do_create_instance(subcmd, opts, args, callback) { if (opts.help) { this.do_help('help', {}, [subcmd], callback); return; - } else if (args.length < 1 || args.length > 2) { - return callback(new errors.UsageError(format( - 'incorrect number of args (%d)', args.length))); + } else if (args.length !== 2) { + return callback(new errors.UsageError('incorrect number of args')); } var log = this.triton.log; @@ -206,7 +205,7 @@ do_create_instance.help = ( 'Create a new instance.\n' + '\n' + 'Usage:\n' + - ' {{name}} create-instance [] IMAGE [PACKAGE]\n' + + ' {{name}} create-instance [] IMAGE PACKAGE\n' + '\n' + '{{options}}' /* END JSSTYLED */