From a1d6b4fde125953e4e27d2777ea2cfb01df495ed Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Thu, 4 Aug 2022 13:23:00 -0700 Subject: [PATCH] chore(openapi): cleaning up some old logic for token opt --- src/cmds/openapi.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/cmds/openapi.js b/src/cmds/openapi.js index 913b6a955..6eedde65b 100644 --- a/src/cmds/openapi.js +++ b/src/cmds/openapi.js @@ -21,7 +21,7 @@ module.exports = class OpenAPICommand { this.cmdCategory = 'apis'; this.position = 1; - this.hiddenArgs = ['token', 'spec']; + this.hiddenArgs = ['spec']; this.args = [ { name: 'key', @@ -66,16 +66,9 @@ module.exports = class OpenAPICommand { } if (version && id) { - warn( - `We'll be using the version associated with the \`--${ - opts.token ? 'token' : 'id' - }\` option, so the \`--version\` option will be ignored.` - ); + warn("We'll be using the version associated with the `--id` option, so the `--version` option will be ignored."); } - debug(`key (final): ${key}`); - debug(`id (final): ${id}`); - if (!key) { return Promise.reject(new Error('No project API key provided. Please use `--key`.')); }