diff --git a/tools/src/OpenSearchHttpClient.ts b/tools/src/OpenSearchHttpClient.ts index 9a1ec9097..76f4640d6 100644 --- a/tools/src/OpenSearchHttpClient.ts +++ b/tools/src/OpenSearchHttpClient.ts @@ -22,10 +22,6 @@ export const OPENSEARCH_URL_OPTION = new Option('--opensearch-url ', 'URL a .default(DEFAULT_URL) .env('OPENSEARCH_URL') -export const OPENSEARCH_DISTRIBUTION_OPTION = new Option('--opensearch-distribution ', 'OpenSearch distribution') - .default('opensearch.org') - .env('OPENSEARCH_DISTRIBUTION') - export const OPENSEARCH_USERNAME_OPTION = new Option('--opensearch-username ', 'username to use when authenticating with OpenSearch') .default(DEFAULT_USER) .env('OPENSEARCH_USERNAME') diff --git a/tools/src/tester/test.ts b/tools/src/tester/test.ts index fbd775310..da025a34b 100644 --- a/tools/src/tester/test.ts +++ b/tools/src/tester/test.ts @@ -17,7 +17,6 @@ import { AWS_SERVICE_OPTION, AWS_SESSION_TOKEN_OPTION, get_opensearch_opts_from_cli, - OPENSEARCH_DISTRIBUTION_OPTION, OPENSEARCH_INSECURE_OPTION, OPENSEARCH_PASSWORD_OPTION, OPENSEARCH_URL_OPTION, @@ -48,8 +47,10 @@ const command = new Command() .addOption(new Option('--verbose', 'whether to print the full stack trace of errors').default(false)) .addOption(new Option('--dry-run', 'dry run only, do not make HTTP requests').default(false)) .addOption(new Option('--opensearch-version ', 'target OpenSearch schema version').default(undefined)) + .addOption(new Option('--opensearch-distribution ', 'OpenSearch distribution') + .default('opensearch.org') + .env('OPENSEARCH_DISTRIBUTION')) .addOption(OPENSEARCH_URL_OPTION) - .addOption(OPENSEARCH_DISTRIBUTION_OPTION) .addOption(OPENSEARCH_USERNAME_OPTION) .addOption(OPENSEARCH_PASSWORD_OPTION) .addOption(OPENSEARCH_INSECURE_OPTION)