diff --git a/lib/cloudapi2.js b/lib/cloudapi2.js index a6b5bc4..fa94215 100644 --- a/lib/cloudapi2.js +++ b/lib/cloudapi2.js @@ -375,7 +375,7 @@ CloudApi.prototype.listKeys = function listKeys(opts, cb) { * 'fingerprint' or 'name' is required. * - {String} name (required*) The SSH key name. One of 'fingerprint' * or 'name' is required. - * @param {Function} callback of the form `function (err, res)` + * @param {Function} callback of the form `function (err, body, res)` */ CloudApi.prototype.getKey = function getKey(opts, cb) { assert.object(opts, 'opts'); @@ -384,7 +384,7 @@ CloudApi.prototype.getKey = function getKey(opts, cb) { assert.func(cb, 'cb'); var identifier = opts.fingerprint || opts.name; - assert.ok(identifier, 'one of "fingerprint" or "name" is require'); + assert.ok(identifier, 'one of "fingerprint" or "name" is required'); var endpoint = format('/%s/keys/%s', this.account, encodeURIComponent(identifier)); @@ -399,7 +399,7 @@ CloudApi.prototype.getKey = function getKey(opts, cb) { * - {String} key (required) The SSH public key content. * - {String} name (optional) A name for the key. If not given, the * key fingerprint will be used. - * @param {Function} callback of the form `function (err, res)` + * @param {Function} callback of the form `function (err, key, res)` */ CloudApi.prototype.createKey = function createKey(opts, cb) { assert.object(opts, 'opts'); @@ -439,7 +439,7 @@ CloudApi.prototype.deleteKey = function deleteKey(opts, cb) { assert.func(cb, 'cb'); var identifier = opts.fingerprint || opts.name; - assert.ok(identifier, 'one of "fingerprint" or "name" is require'); + assert.ok(identifier, 'one of "fingerprint" or "name" is required'); this._request({ method: 'DELETE', @@ -950,7 +950,7 @@ CloudApi.prototype.getUserKey = function getUserKey(opts, cb) { assert.optionalString(opts.fingerprint, 'opts.fingerprint'); assert.optionalString(opts.name, 'opts.name'); assert.ok(opts.fingerprint || opts.name, - 'one of "fingerprint" or "name" is require'); + 'one of "fingerprint" or "name" is required'); assert.func(cb, 'cb'); var endpoint = format('/%s/users/%s/keys/%s', this.account, opts.userId, @@ -1008,7 +1008,7 @@ CloudApi.prototype.deleteUserKey = function deleteUserKey(opts, cb) { assert.optionalString(opts.fingerprint, 'opts.fingerprint'); assert.optionalString(opts.name, 'opts.name'); assert.ok(opts.fingerprint || opts.name, - 'one of "fingerprint" or "name" is require'); + 'one of "fingerprint" or "name" is required'); assert.func(cb, 'cb'); this._request({ diff --git a/lib/do_key/do_add.js b/lib/do_key/do_add.js index 3bbc2cf..f0422d3 100644 --- a/lib/do_key/do_add.js +++ b/lib/do_key/do_add.js @@ -129,7 +129,7 @@ do_add.help = [ 'Add an SSH key to an account.', '', 'Usage:', - ' {{name}} key add FILE []', + ' {{name}} add [] FILE', '', '{{options}}', '', diff --git a/lib/do_key/do_delete.js b/lib/do_key/do_delete.js index 1a18b96..e9b4309 100644 --- a/lib/do_key/do_delete.js +++ b/lib/do_key/do_delete.js @@ -108,7 +108,7 @@ do_delete.help = [ 'Remove an SSH key from an account.', '', 'Usage:', - ' {{name}} key delete FILE []', + ' {{name}} delete [] FILE', '', '{{options}}', '', diff --git a/lib/do_key/do_get.js b/lib/do_key/do_get.js index 87ddd01..dba3a94 100644 --- a/lib/do_key/do_get.js +++ b/lib/do_key/do_get.js @@ -71,7 +71,7 @@ do_get.help = [ 'Show a specific SSH key in an account.', '', 'Usage:', - ' {{name}} key get KEY # show account\'s KEY', + ' {{name}} get KEY', '', '{{options}}', 'Where "KEY" is an SSH key "name" or "fingerprint".' diff --git a/lib/do_key/do_list.js b/lib/do_key/do_list.js index e22ac57..2a64faa 100644 --- a/lib/do_key/do_list.js +++ b/lib/do_key/do_list.js @@ -65,7 +65,7 @@ do_list.help = [ 'Show all of an account\'s SSH keys.', '', 'Usage:', - ' {{name}} key list []', + ' {{name}} list []', '', '{{options}}', '',